From: Stefano Stabellini Subject: Re: xl: pci completion error Date: Wed, 6 Oct 2010 17:36:57 +0100 Message-ID: References: <4CAB0E9A.5050507@gmail.com> <4CAC74DD.3030703@gmail.com> <1286375398.12843.98.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <1286375398.12843.98.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gianni Tedesco Cc: Sergey Tovpeko , "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org > > We could probably benefit from a boolean "force" parameter to do_pci_remove > > and libxl_device_pci_remove, that would cause do_pci_remove not to > > return if libxl__wait_for_device_model returns error. > > Of course libxl_device_pci_remove would be called with force=1 by > > libxl_device_pci_shutdown. > > Gianni, what do you think? > > Sergeys analysis sounds very plausible to me actually. The co-ordination > required between qemu and libxl for PCI passthrough is very complicated > and one ought to have fairly low confidence in it's correctness :P > > Below is a less hacky version of the patch I just sent. Stefano, please > consider this for inclusion. > I like the patch, I am going to apply it.