From: Stefano Stabellini Date: Fri, 5 Apr 2013 23:30:14 +0000 (+0000) Subject: Revert "xen: Disable use of O_DIRECT by default as it results in crashes." X-Git-Tag: qemu-xen-4.3.0-rc1~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6dec8e7a46ae33062c05abaeba73b47bbe9337b9;p=qemu-upstream-4.3-testing.git Revert "xen: Disable use of O_DIRECT by default as it results in crashes." This reverts commit f3903bbac78a81fcbce1350cdce860764a62783a. --- diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 357f9c103..69e1d9d81 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -744,7 +744,7 @@ static int blk_init(struct XenDevice *xendev) } /* read-only ? */ - qflags = BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO; + qflags = BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO; if (strcmp(blkdev->mode, "w") == 0) { qflags |= BDRV_O_RDWR; } else {