From: Stefano Stabellini Date: Fri, 23 Mar 2012 14:36:18 +0000 (+0000) Subject: xen_disk: open disks with BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO X-Git-Tag: qemu-xen-4.3.0-rc1~18^2~28 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=47982cb00584371928e44ab6dfc6865d605a52fd;p=qemu-upstream-4.3-testing.git xen_disk: open disks with BDRV_O_NOCACHE | BDRV_O_NATIVE_AIO Signed-off-by: Stefano Stabellini --- diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 285a951d8..16c3e6692 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -663,10 +663,10 @@ static int blk_init(struct XenDevice *xendev) } /* read-only ? */ + qflags = BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO; if (strcmp(blkdev->mode, "w") == 0) { - qflags = BDRV_O_RDWR; + qflags |= BDRV_O_RDWR; } else { - qflags = 0; info |= VDISK_READONLY; }