From: Ian Campbell Subject: Re: [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes. Date: Fri, 15 Mar 2013 09:28:31 +0000 Message-ID: <1363339711.32410.287.camel@zakaz.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20802.9550.113423.377616@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Alex Bligh , Konrad Rzeszutek Wilk , George Dunlap , Stefano Stabellini , xen-devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Thu, 2013-03-14 at 19:30 +0000, Ian Jackson wrote: > Stefano Stabellini writes ("Re: [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes."): > > On Fri, 8 Mar 2013, Alex Bligh wrote: > > > Due to what is almost certainly a kernel bug, writes with > > > O_DIRECT may continue to reference the page after the write > > > has been marked as completed, particularly in the case of > > > TCP retransmit. In other scenarios, this "merely" risks > > > data corruption on the write, but with Xen pages from domU > > > are only transiently mapped into dom0's memory, resulting > > > in kernel panics when they are subsequently accessed. > > > > > > This brings PV devices in line with emulated devices. Removing > > > O_DIRECT is safe as barrier operations are now correctly passed > > > through. > > > > > > See: > > > http://lists.xen.org/archives/html/xen-devel/2012-12/msg01154.html > > > for more details. > > > > > > Signed-off-by: Alex Bligh > > > > > > Acked-by: Stefano Stabellini > > Marvellous, pushed to staging/qemu-upstream-unstable.git Isn't one of the guiding principals of this tree that it should contain only backports from upstream qemu.git#master? In order to avoid regressions in the future, accidental forking, etc etc. I don't see this commit in upstream qemu.git and AFAICT this patch wasn't even sent to qemu-devel. There may well be exceptions to this e.g. where qemu-devel is slow and the matter is urgent or where the issue only pertains to the stable branch but I don't think there are any exceptional circumstances here. Ian.