From: Ian Campbell Subject: Re: [BUG] Xen vm kernel crash in get_free_entries. Date: Wed, 13 Nov 2013 12:39:59 +0000 Message-ID: <1384346399.5406.102.camel@kazak.uk.xensource.com> References: <1382089564.18128.103.camel@kazak.uk.xensource.com> <20131018141554.GN2924@reaktio.net> <1382105942.18128.124.camel@kazak.uk.xensource.com> <1746041225.20131019011459@eikelenboom.it> <5262642A.2060609@rat.ru> <1382180597.28188.9.camel@dagon.hellion.org.uk> <267039552.20131019135850@eikelenboom.it> <20131021105510.GB12019@u109add4315675089e695.ant.amazon.com> <527B2311.2030605@rat.ru> <1383832023.32399.39.camel@kazak.uk.xensource.com> <20131112155614.GA11354@phenom.dumpdata.com> <1384335658.5406.16.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384335658.5406.16.camel@kazak.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: Konrad Rzeszutek Wilk Cc: Steven Noonan , Stefano Stabellini , Matt Wilson , xen-devel@lists.xen.org, Sander Eikelenboom , astarta@rat.ru, David Vrabel , Matt Wilson List-Id: xen-devel@lists.xenproject.org On Wed, 2013-11-13 at 09:40 +0000, Ian Campbell wrote: > On Tue, 2013-11-12 at 10:56 -0500, Konrad Rzeszutek Wilk wrote: > > On Thu, Nov 07, 2013 at 01:47:03PM +0000, Ian Campbell wrote: > > > On Thu, 2013-11-07 at 09:20 +0400, Astarta wrote: > > > > Hello, > > > > > > > > Let me bring some new life to this discussion. > > > > > > > > I've investigated a bit and found another way to make kernels starting > > > > from 3.8.x to boot on the VMs with platform device_id 0002. > > > > Reverting of xen-grant-table-correctly-initialize-grant-table-version-1 > > > > patch is not necessary. > > > > > > > > We can simply modify struct pci_device_id platform_pci_tbl[] (in > > > > drivers/xen/platform-pci.c) to respect 0002 and 0000 device ids. > > > > That makes the kernel (3.8.x and 3.11.6) to boot correctly, disks and > > > > network are also recognized. > > > > > > I think this is just working around the problem, by avoiding the > > > situation where the error occurs. You could just as well switch to > > > platform device id < 2. > > > > I am bit late to this discussion - but shouldn't there be something > > in the kernel to deal with this? > > Well, ideally the kernel wouldn't crash ;-) > > I don't think it would be appropriate for Linux to bind to the device > with ID 2, since that has been assigned to a vendor > http://xenbits.xen.org/docs/unstable/hypercall/x86_64/include,public,hvm,pvdrivers.h.html > it should be up to them to define the ABI of that device and provide a > Linux binding if they want. > > Perhaps the unplug protocol > http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html needs > expanding to blacklist products based on the presence absence of > whichever platform device subids there are. > > I'm a bit confused because I thought the requirement was that the base > level platform device was always present and the secondary ones (like > the Citrix PV device with ID 2) would only ever be additional. Maybe I'm > wrong about that. It turns out that some of the conclusions in http://lists.xen.org/archives/html/xen-devel/2013-11/msg01796.html are relevant here, especially the subthread from http://lists.xen.org/archives/html/xen-devel/2013-11/msg01842.html onwards... Ian.