From: Ian Jackson Subject: Re: [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes. Date: Fri, 15 Mar 2013 11:37:12 +0000 Message-ID: <20803.2024.449488.209605@mariner.uk.xensource.com> References: <5139C915.5080309@eu.citrix.com> <1362742844-6679-1-git-send-email-alex@alex.org.uk> <20802.9550.113423.377616@mariner.uk.xensource.com> <1363339711.32410.287.camel@zakaz.uk.xensource.com> <20803.1075.533489.885473@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Ian Campbell , Konrad Rzeszutek Wilk , George Dunlap , xen-devel , Jan Beulich , Alex Bligh List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("Re: [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes."): > On Fri, 15 Mar 2013, Ian Jackson wrote: > > I thought you were telling me to commit it to your tree. > > Right, we misunderstood each other. > I thought you were going to commit it to qemu-xen-unstable.git Oh I see. I thought we already had the equivalent there. Let me check... ...no, we don't. The code there is somewhat different. How about the patch below ? Stefano, shall I revert the commit in qemu-upstream-unstable ? Ian. diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 33a5531..ee8d36f 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -635,7 +635,7 @@ static int blk_init(struct XenDevice *xendev) return -1; /* read-only ? */ - qflags = BDRV_O_NOCACHE; + qflags = BDRV_O_CACHE_WB; if (strcmp(blkdev->mode, "w") == 0) { mode = O_RDWR; qflags |= BDRV_O_RDWR;