[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] PCI.get_all_records

  • To: John Else <john.else@xxxxxxxxxx>, "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: Chris Beasley <Chris@xxxxxxxxxx>
  • Date: Thu, 2 Apr 2015 19:58:07 +0000
  • Accept-language: en-NZ, en-US
  • Delivery-date: Thu, 02 Apr 2015 19:58:39 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: AdBtHBUt1zVj8FHOTSqr8qMGrv6ZZgAD4BRAABTF2qA=
  • Thread-topic: PCI.get_all_records

Hi John,

Thanks.  So the PCI aspects of the API only expose the supported functions, 
which in this case are gpus, vgpus etc. as you have stated?  Are there any 
thoughts on exposing this so that passthrough functionality is as simple as 
VMware have made it for those that do need to pass other sorts of devices 



-----Original Message-----
From: John Else [mailto:john.else@xxxxxxxxxx] 
Sent: Thursday, 2 April 2015 11:47 p.m.
To: Chris Beasley; xen-api@xxxxxxxxxxxxx
Subject: RE: PCI.get_all_records

> The Xen-Orchestra team where trying to implement a system that allowed you to 
> add attached pci devices to any VM that the host can use.  Normally this is 
> done by using LSPCI to get the PCI ID and then passing this through to a VM 
> using the xe other config > command.  Now, as far as XO can determine, the 
> pci.get_all_records() should get a list of all pci devices attached to the 
> host, but instead is simply lists only any attached gpu and not the rest of 
> the devices such as USB, other pci devices etc.
> Is pci.get_all_records() the right api command to list all devices attached 
> to the host, or is there no way to do what LSPCI does from the console using 
> XenAPI?

Hi Chris, when creating PCI objects xapi filters the output of lspci to only 
create objects for display devices [1] [2], as this is the only class of device 
for which xapi supports passthrough via the "official" API (VGPUs, GPU groups 

To passthrough other classes of device, at the moment you'll have to query the 
PCI devices some other way (e.g. with lspci) and then use the other_config 


Xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.