From: Stefano Stabellini Date: Mon, 2 Apr 2012 16:54:08 +0000 (+0100) Subject: qemu-xen-traditional: use O_DIRECT to open disk images for IDE X-Git-Tag: xen-4.2.0-rc1~14 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1307e42a4b3c1102d75401bc0cffb4eb6c9b7a38;p=qemu-xen-4.2-testing.git qemu-xen-traditional: use O_DIRECT to open disk images for IDE [ Major performance fix. -iwj ] Signed-off-by: Stefano Stabellini Acked-by: Ian Jackson --- diff --git a/xenstore.c b/xenstore.c index 4c483e295..ac90366f0 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_CACHE_WB; /* snapshot and write-back */ + flags = BDRV_O_NOCACHE; is_readonly = 0; if (pasprintf(&buf, "%s/mode", bpath) == -1) continue;