diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-03-23 11:39:51 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-03-23 14:33:54 +0000 |
commit | 820914103ca55c0eb7ecf6f458f18cb7989f439e (patch) | |
tree | b0405a3fb4f73043e46efc4f318d5c84c7cd2ddf /hw/xen_disk.c | |
parent | 33cf629a3754b58a1e2dbbe01d91d97e712b7c06 (diff) | |
download | qemu-820914103ca55c0eb7ecf6f458f18cb7989f439e.zip qemu-820914103ca55c0eb7ecf6f458f18cb7989f439e.tar.gz qemu-820914103ca55c0eb7ecf6f458f18cb7989f439e.tar.bz2 |
xen_disk: open disk with BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'hw/xen_disk.c')
-rw-r--r-- | hw/xen_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 68fa36a..0f265a4 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -584,10 +584,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; } |