summaryrefslogtreecommitdiffstats
path: root/hw/ide/macio.c
diff options
context:
space:
mode:
authorAnthony Liguori2012-04-10 15:16:12 +0200
committerAnthony Liguori2012-04-10 15:16:12 +0200
commitbb5d8dd757eaa8f9a048c5205c69bed20ea373d1 (patch)
treef4c7f7218e62f529c6406b0ad1635bef32867854 /hw/ide/macio.c
parentMerge remote-tracking branch 'stefanha/trivial-patches' into staging (diff)
parentqed: remove incoming live migration blocker (diff)
downloadqemu-bb5d8dd757eaa8f9a048c5205c69bed20ea373d1.tar.gz
qemu-bb5d8dd757eaa8f9a048c5205c69bed20ea373d1.tar.xz
qemu-bb5d8dd757eaa8f9a048c5205c69bed20ea373d1.zip
Merge remote-tracking branch 'kwolf/for-anthony' into staging
* kwolf/for-anthony: (46 commits) qed: remove incoming live migration blocker qed: honor BDRV_O_INCOMING for incoming live migration migration: clear BDRV_O_INCOMING flags on end of incoming live migration qed: add bdrv_invalidate_cache to be called after incoming live migration blockdev: open images with BDRV_O_INCOMING on incoming live migration block: add a function to clear incoming live migration flags block: Add new BDRV_O_INCOMING flag to notice incoming live migration block stream: close unused files and update ->backing_hd qemu-iotests: Fix call syntax for qemu-io qemu-iotests: Fix call syntax for qemu-img qemu-iotests: Test unknown qcow2 header extensions qemu-iotests: qcow2.py sheepdog: fix send req helpers sheepdog: implement SD_OP_FLUSH_VDI operation block: bdrv_append() fixes qed: track dirty flag status qemu-img: add dirty flag status qed: image fragmentation statistics qemu-img: add image fragmentation statistics block: document job API ...
Diffstat (limited to 'hw/ide/macio.c')
-rw-r--r--hw/ide/macio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index a4df24406a..7b38d9e683 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -149,7 +149,8 @@ static void pmac_ide_transfer_cb(void *opaque, int ret)
break;
case IDE_DMA_TRIM:
m->aiocb = dma_bdrv_io(s->bs, &s->sg, sector_num,
- ide_issue_trim, pmac_ide_transfer_cb, s, true);
+ ide_issue_trim, pmac_ide_transfer_cb, s,
+ DMA_DIRECTION_TO_DEVICE);
break;
}
return;