From: Alex Bligh <alex@alex.org.uk>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Alex Bligh <alex@alex.org.uk>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel <xen-devel@lists.xen.org>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes.
Date: Mon, 11 Mar 2013 14:02:49 +0000 [thread overview]
Message-ID: <DDA0EE1D73C6B204663AF04C@nimrod.local> (raw)
In-Reply-To: <CAFLBxZb96xmOT9KLBpvwhCY1gZYv=9ReF6MzpVG2Wtr5HQX7bQ@mail.gmail.com>
--On 8 March 2013 12:54:16 +0000 George Dunlap
<George.Dunlap@eu.citrix.com> wrote:
> On Fri, Mar 8, 2013 at 11:40 AM, Alex Bligh <alex@alex.org.uk> 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.
>
> Not qualified to comment on the technical merits of the patch, but re
> the commit message:
>
> Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Any further thoughts on this one?
--
Alex Bligh
---------- Forwarded Message ----------
Date: 8 March 2013 11:40:44 +0000
From: Alex Bligh <alex@alex.org.uk>
To: xen-devel <xen-devel@lists.xen.org>, Stefano Stabellini
<stefano.stabellini@eu.citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>, Alex Bligh <alex@alex.org.uk>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>, Jan Beulich <JBeulich@suse.com>, George Dunlap
<George.Dunlap@eu.citrix.com>
Subject: [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default
as it results in crashes.
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 <alex@alex.org.uk>
---
hw/xen_disk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/xen_disk.c b/hw/xen_disk.c
index a402ac8..14f8723 100644
--- a/hw/xen_disk.c
+++ b/hw/xen_disk.c
@@ -603,7 +603,7 @@ static int blk_init(struct XenDevice *xendev)
}
/* read-only ? */
- qflags = BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO;
+ qflags = BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO;
if (strcmp(blkdev->mode, "w") == 0) {
qflags |= BDRV_O_RDWR;
} else {
--
1.7.4.1
---------- End Forwarded Message ----------
--
Alex Bligh
next prev parent reply other threads:[~2013-03-11 14:02 UTC|newest]
Thread overview: 119+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 14:54 Fatal crash on xen4.2 HVM + qemu-xen dm + NFS Alex Bligh
2012-12-17 10:10 ` Jan Beulich
2012-12-17 17:09 ` Alex Bligh
2013-01-16 10:56 ` Alex Bligh
2013-01-16 14:34 ` Stefano Stabellini
2013-01-16 15:06 ` Alex Bligh
2013-01-16 16:00 ` Alex Bligh
2013-01-16 16:27 ` Stefano Stabellini
2013-01-16 17:13 ` Alex Bligh
2013-01-16 17:33 ` Stefano Stabellini
2013-01-16 17:39 ` Stefano Stabellini
2013-01-16 18:14 ` Alex Bligh
2013-01-16 18:49 ` Stefano Stabellini
2013-01-16 19:00 ` Stefano Stabellini
2013-01-17 7:58 ` Alex Bligh
2013-01-16 18:12 ` Alex Bligh
2013-01-21 15:15 ` Alex Bligh
2013-01-21 15:23 ` Ian Campbell
2013-01-21 15:35 ` Alex Bligh
2013-01-21 15:50 ` Ian Campbell
2013-01-21 16:33 ` Alex Bligh
2013-01-21 16:51 ` Ian Campbell
2013-01-21 17:06 ` Alex Bligh
2013-01-21 17:29 ` Ian Campbell
2013-01-21 17:31 ` Alex Bligh
2013-01-21 17:32 ` Ian Campbell
2013-01-21 18:14 ` Alex Bligh
2013-01-22 10:05 ` Ian Campbell
2013-01-22 13:02 ` Alex Bligh
2013-01-22 13:13 ` Ian Campbell
2013-01-21 20:37 ` Alex Bligh
2013-01-22 10:07 ` Ian Campbell
2013-01-22 13:01 ` Alex Bligh
2013-01-22 13:14 ` Ian Campbell
2013-01-22 13:18 ` Alex Bligh
2013-01-22 10:13 ` Ian Campbell
2013-01-22 12:59 ` Alex Bligh
2013-01-22 15:46 ` Stefano Stabellini
2013-01-22 15:42 ` Stefano Stabellini
2013-01-22 16:09 ` Stefano Stabellini
2013-01-22 20:31 ` Alex Bligh
2013-01-23 11:52 ` Stefano Stabellini
2013-01-23 15:19 ` Alex Bligh
2013-01-23 16:29 ` Stefano Stabellini
2013-01-25 11:28 ` Alex Bligh
2013-02-05 15:40 ` Alex Bligh
2013-02-22 17:28 ` Alex Bligh
2013-02-22 17:41 ` Konrad Rzeszutek Wilk
2013-02-22 18:00 ` Stefano Stabellini
2013-02-22 19:53 ` Alex Bligh
2013-03-06 11:50 ` Alex Bligh
2013-03-07 1:01 ` Konrad Rzeszutek Wilk
2013-03-07 4:15 ` Stefano Stabellini
2013-03-07 10:47 ` [PATCH] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes Alex Bligh
2013-03-08 3:18 ` Stefano Stabellini
2013-03-08 9:25 ` [PATCHv2] " Alex Bligh
2013-03-08 9:26 ` [PATCH] " Alex Bligh
2013-03-08 10:17 ` George Dunlap
2013-03-08 10:27 ` Alex Bligh
2013-03-08 10:35 ` George Dunlap
2013-03-08 10:50 ` Alex Bligh
2013-03-08 11:18 ` George Dunlap
2013-03-08 11:40 ` [PATCHv3] " Alex Bligh
2013-03-08 12:54 ` George Dunlap
2013-03-11 14:02 ` Alex Bligh [this message]
2013-03-11 14:42 ` George Dunlap
2013-03-11 17:48 ` Konrad Rzeszutek Wilk
2013-03-11 17:55 ` Ian Jackson
2013-03-14 17:06 ` Alex Bligh
2013-03-14 18:26 ` Ian Jackson
2013-03-12 12:08 ` Ian Campbell
2013-03-14 18:37 ` Stefano Stabellini
2013-03-14 19:30 ` Ian Jackson
2013-03-14 19:56 ` Alex Bligh
2013-03-15 9:28 ` Ian Campbell
2013-03-15 10:43 ` Stefano Stabellini
2013-03-15 11:21 ` Ian Jackson
2013-03-15 11:28 ` Stefano Stabellini
2013-03-15 11:37 ` Ian Jackson
2013-03-15 11:43 ` Stefano Stabellini
2013-03-15 12:43 ` Alex Bligh
2013-03-15 12:50 ` Ian Campbell
2013-03-15 18:31 ` Ian Jackson
2013-03-18 10:29 ` Alex Bligh
2013-03-18 11:47 ` Stefano Stabellini
2013-03-18 12:21 ` Alex Bligh
2013-03-08 11:41 ` [PATCH] " Alex Bligh
2013-03-08 10:28 ` George Dunlap
2013-03-08 10:45 ` Alex Bligh
2013-03-07 10:51 ` Fatal crash on xen4.2 HVM + qemu-xen dm + NFS Alex Bligh
2013-03-07 8:16 ` Alex Bligh
-- strict thread matches above, loose matches on Subject: below --
2013-03-18 12:18 [PATCHv3] QEMU(upstream): Disable xen's use of O_DIRECT by default as it results in crashes Alex Bligh
2013-03-18 13:32 ` Paolo Bonzini
[not found] ` <51471767.8030604@redhat.com>
[not found] ` <7AC8953FE45335FB794B6DFE@Ximines.local>
[not found] ` <51471F14.7030209@redhat.com>
[not found] ` <6D0F4ACDA3B7FCF1A50F8B52@Ximines.local>
2013-03-18 14:49 ` Paolo Bonzini
[not found] ` <5147298C.8080900@redhat.com>
2013-03-18 15:40 ` Alex Bligh
[not found] ` <A2FA46AE3DD746AD97DC3137@Ximines.local>
2013-03-18 16:19 ` Paolo Bonzini
[not found] ` <51473E82.1020806@redhat.com>
2013-03-18 16:53 ` Alex Bligh
2013-03-18 17:38 ` George Dunlap
2013-03-18 17:47 ` Alex Bligh
2013-03-18 18:00 ` Paolo Bonzini
[not found] ` <5147562E.1090203@redhat.com>
2013-03-19 10:06 ` George Dunlap
[not found] ` <CAFLBxZbL4JC9SBgHzehtfpcjtR5OQN90SPFSTsXRLrpTWUSBsQ@mail.gmail.com>
2013-03-19 10:43 ` Paolo Bonzini
[not found] ` <5148414C.7060303@redhat.com>
2013-03-19 10:51 ` George Dunlap
[not found] ` <51484328.4030301@eu.citrix.com>
2013-03-19 11:14 ` Paolo Bonzini
[not found] ` <5148489C.70808@redhat.com>
2013-03-19 11:21 ` George Dunlap
2013-03-19 15:12 ` George Dunlap
[not found] ` <CAFLBxZYGfKJaNZQaZW0kmTdRxDqAbURtHD1kxsY76qQVh_xrkQ@mail.gmail.com>
2013-03-19 15:29 ` George Dunlap
[not found] ` <CAFLBxZbR8RugaTS82OxTTMQgzi+w-4hkooYZ=x_HNFWchg2yiQ@mail.gmail.com>
[not found] ` <0E09404F0675BA19C550B743@nimrod.local>
[not found] ` <alpine.DEB.2.02.1303201020170.17662@kaball.uk.xensource.com>
[not found] ` <51499157.2060202@eu.citrix.com>
2013-03-20 11:08 ` Paolo Bonzini
[not found] ` <514998A3.9090903@redhat.com>
2013-03-20 11:20 ` Alex Bligh
2013-03-19 11:44 ` Alex Bligh
[not found] ` <45EC1ED73B198669B314A507@nimrod.local>
2013-03-19 11:49 ` Paolo Bonzini
2013-03-19 15:13 ` Stefano Stabellini
[not found] ` <alpine.DEB.2.02.1303191454170.4716@kaball.uk.xensource.com>
2013-03-19 16:53 ` Paolo Bonzini
[not found] ` <51489818.9040709@redhat.com>
2013-03-19 17:03 ` Stefano Stabellini
2013-03-20 8:33 ` Alex Bligh
2013-03-20 9:26 ` Paolo Bonzini
[not found] ` <514980BD.7010005@redhat.com>
2013-03-29 17:19 ` Stefano Stabellini
2013-03-31 19:53 ` Alex Bligh
[not found] ` <66DB172ECC6AABDC49D0E5A4@Ximines.local>
2013-04-01 16:35 ` Alex Bligh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DDA0EE1D73C6B204663AF04C@nimrod.local \
--to=alex@alex.org.uk \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=konrad.wilk@oracle.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).