From: Ian Campbell Subject: Re: xen-unstable pci passthrough: bug in accounting assigned pci devices when assignment has failed Date: Mon, 24 Feb 2014 10:49:37 +0000 Message-ID: <1393238977.16570.37.camel@kazak.uk.xensource.com> References: <974010162.20140221153400@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WHt6g-0003D8-Fc for xen-devel@lists.xenproject.org; Mon, 24 Feb 2014 10:49:54 +0000 In-Reply-To: <974010162.20140221153400@eikelenboom.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sander Eikelenboom Cc: xen-devel List-Id: xen-devel@lists.xenproject.org graft 27 ^ thanks Adding this info to the bug for the benefit of whoever ends up looking at it. Thanks. Ian. On Fri, 2014-02-21 at 15:34 +0100, Sander Eikelenboom wrote: > Hi Ian, > > It was decided that the bug that domain creation does not fail on non assignable pci devices was deferred to 4.5. > (and it wouldn't prevent this bug anyhow when doing pci hotplug with xl pci-attach) > > But there seems to be a bug in the error path: > > root@creanuc:~# xl pci-assignable-list > 0000:02:00.0 > > Now when i boot a VM with pci=['00:19.0'] in it's config file ... which is not assignable: > > root@creanuc:~# xl create /etc/xen/domU/router.hvm > Parsing config from /etc/xen/domU/router.hvm > libxl: error: libxl_pci.c:1060:libxl__device_pci_add: PCI device 0:0:19.0 is not assignable > > That looks ok ... and the pci device is not visible / accessible in the guest ... but it seems the entry is still in xenstore nevertheless: > > root@creanuc:~# xl pci-list router > Vdev Device > 00.0 0000:00:19.0 > > -- > Sander >