From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Steven Noonan <snoonan@amazon.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Matt Wilson <msw@linux.com>,
xen-devel@lists.xen.org,
Sander Eikelenboom <linux@eikelenboom.it>,
astarta@rat.ru, David Vrabel <david.vrabel@citrix.com>,
Matt Wilson <msw@amazon.com>
Subject: Re: [BUG] Xen vm kernel crash in get_free_entries.
Date: Wed, 27 Nov 2013 11:40:15 -0500 [thread overview]
Message-ID: <20131127164015.GC5232@pegasus.dumpdata.com> (raw)
In-Reply-To: <1385567935.30237.42.camel@kazak.uk.xensource.com>
On Wed, Nov 27, 2013 at 03:58:55PM +0000, Ian Campbell wrote:
> On Wed, 2013-11-27 at 09:24 -0500, Konrad Rzeszutek Wilk wrote:
> > On Wed, Nov 27, 2013 at 09:36:55AM +0000, Ian Campbell wrote:
> > > On Tue, 2013-11-26 at 15:08 -0500, Konrad Rzeszutek Wilk wrote:
> > > > diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
> > > > index 432db1b..bcbaf0b 100644
> > > > --- a/drivers/block/xen-blkfront.c
> > > > +++ b/drivers/block/xen-blkfront.c
> > > > @@ -2074,7 +2074,7 @@ static int __init xlblk_init(void)
> > > > if (!xen_domain())
> > > > return -ENODEV;
> > > >
> > > > - if (xen_hvm_domain() && !xen_platform_pci_unplug)
> > > > + if (xen_err_out())
> > >
> > > I think !xen_has_pv_devices() or some such would be a better name.
> >
> > <nods>
> > > > diff --git a/include/xen/platform_pci.h b/include/xen/platform_pci.h
> > > > index 438c256..a5bbd0b 100644
> > > > --- a/include/xen/platform_pci.h
> > > > +++ b/include/xen/platform_pci.h
> > > > @@ -47,5 +47,18 @@ static inline int xen_must_unplug_disks(void) {
> > > > }
> > > >
> > > > extern int xen_platform_pci_unplug;
> > > > +static bool xen_err_out(void)
> > >
> > > ^ stray space, but I think you wanted an inline here anyway?
> >
> > Yup.
> > >
> > > Or you could move this to arch/x86/xen/platform-pci-unplug.c and then
> > > xen_platform_pci_unplug could be unexported, which seems like a good
> > > thing to do if the logic to using it is as complex as below.
> >
> > I was thinking about it - but then there is a bit of a problem with
> > !CONFIG_PVHVM && CONFIG_XEN_BLKFRONT for example. Which means that
> > platform-pci-unplug.c won't be built, but the xen-blkfront will and
> > it needs the xen_has_pv_devices()). Hence sticking it in a header.
>
> Is that not just a case of #define xen_has_pc_devices 1 with the
> appropriate ifndef CONFIG_PVHVM in the header (the other case being the
> prototype for the out of line version)? That's a pretty common pattern
> for things which rely on a patricular CONFIG_FOO to be useful.
Yes. That would do it too (duh!)
>
> Ian.
>
next prev parent reply other threads:[~2013-11-27 16:40 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 6:28 [BUG] Xen vm kernel crash in get_free_entries Astarta
2013-10-16 13:29 ` David Vrabel
2013-10-16 14:17 ` Pasi Kärkkäinen
2013-10-17 8:55 ` Astarta
2013-10-17 19:04 ` Astarta
2013-10-17 19:28 ` Pasi Kärkkäinen
2013-10-18 9:31 ` David Vrabel
2013-10-18 9:46 ` Ian Campbell
2013-10-18 10:31 ` Astarta
2013-10-18 11:34 ` Paul Durrant
2013-10-18 11:06 ` Paul Durrant
2013-10-18 11:08 ` Astarta
2013-10-18 11:27 ` Sander Eikelenboom
2013-10-18 11:33 ` Paul Durrant
2013-10-18 14:15 ` Pasi Kärkkäinen
2013-10-18 14:19 ` Ian Campbell
2013-10-18 14:27 ` Pasi Kärkkäinen
2013-10-18 23:14 ` Sander Eikelenboom
2013-10-19 10:51 ` Astarta
2013-10-19 11:03 ` Ian Campbell
2013-10-19 11:58 ` Sander Eikelenboom
2013-10-21 10:55 ` Matt Wilson
2013-11-07 5:20 ` Astarta
2013-11-07 13:47 ` Ian Campbell
2013-11-12 15:56 ` Konrad Rzeszutek Wilk
2013-11-13 9:40 ` Ian Campbell
2013-11-13 12:39 ` Ian Campbell
2013-11-26 20:08 ` Konrad Rzeszutek Wilk
2013-11-26 22:00 ` Sander Eikelenboom
2013-11-26 22:15 ` Sander Eikelenboom
2013-11-26 22:55 ` Sander Eikelenboom
2013-11-26 23:05 ` Konrad Rzeszutek Wilk
2013-11-26 23:14 ` Sander Eikelenboom
2013-11-27 9:36 ` Ian Campbell
2013-11-27 14:24 ` Konrad Rzeszutek Wilk
2013-11-27 15:58 ` Ian Campbell
2013-11-27 16:40 ` Konrad Rzeszutek Wilk [this message]
2013-11-28 14:56 ` Stefano Stabellini
2013-11-29 3:26 ` Konrad Rzeszutek Wilk
2013-11-29 11:54 ` Stefano Stabellini
2013-12-09 12:57 ` Sander Eikelenboom
2013-12-10 15:07 ` Konrad Rzeszutek Wilk
2013-10-21 10:29 ` Matt Wilson
2013-10-21 10:46 ` David Vrabel
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=20131127164015.GC5232@pegasus.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=astarta@rat.ru \
--cc=david.vrabel@citrix.com \
--cc=linux@eikelenboom.it \
--cc=msw@amazon.com \
--cc=msw@linux.com \
--cc=snoonan@amazon.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).