From: Ian Jackson Date: Tue, 14 Aug 2012 14:57:49 +0000 (+0100) Subject: Revert "qemu-xen-traditional: use O_DIRECT to open disk images for IDE" X-Git-Tag: xen-4.1.4-rc1~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dbd79be2d3d47c6a73f6292ffb8de9860cd80ad8;p=qemu-xen-4.1-testing.git Revert "qemu-xen-traditional: use O_DIRECT to open disk images for IDE" This reverts commit 1307e42a4b3c1102d75401bc0cffb4eb6c9b7a38. In fact after a lengthy discussion, we came up with the conclusion that WRITEBACK is OK for IDE. See: http://marc.info/?l=xen-devel&m=133311527009773 Therefore revert this which was committed in error. (cherry picked from commit effd5676225761abdab90becac519716515c3be4) --- diff --git a/xenstore.c b/xenstore.c index ac90366f0..4c483e295 100644 --- a/xenstore.c +++ b/xenstore.c @@ -643,7 +643,7 @@ void xenstore_parse_domain_config(int hvm_domid) } pstrcpy(bs->filename, sizeof(bs->filename), params); - flags = BDRV_O_NOCACHE; + flags = BDRV_O_CACHE_WB; /* snapshot and write-back */ is_readonly = 0; if (pasprintf(&buf, "%s/mode", bpath) == -1) continue;