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

Re: [Xen-users] Requesting Help - Error: pci: PCI Backend and pci-stub don't own device



Thanks for the quick response.  

I have tried passing in pci=[05:00.0, 05:00.1] but not just pci=[05:00.0] or pci=[05:00.1].  This is due to needing both ports (each HVM I want to set up requires at minimum 2 NICs + the xenrb0 port on vif)

xm pci-list-assignable-devices reports the following (all of the devices I requested):
0000:05:00.0
0000:05:00.1
0000:00:01.0
0000:00:1c.0
0000:01:00.0
0000:02:02.0
0000:02:04.0
0000:03:00.0
0000:03:00.1
0000:04:00.0
0000:04:00.1

The xm create error messages via different setup configurations:
############################################################################################################
#pci=['01:00.0', '02:02.0', '02:04.0', '03:00.0','03:00.1','04:00.0','04:00.1']
root@fiat:~# xm create /etc/xen/ubuntu-hvm.cfg 
Using config file "/etc/xen/ubuntu-hvm.cfg".
Error: pci: PCI Backend and pci-stub don't own device 0000:01:00.0

############################################################################################################
#pci=['00:01.0', '03:00.0','03:00.1','04:00.0','04:00.1']
root@fiat:~# xm create /etc/xen/ubuntu-hvm.cfg 
Using config file "/etc/xen/ubuntu-hvm.cfg".
Error: pci: PCI Backend and pci-stub don't own device 0000:00:01.0

############################################################################################################
#pci=['00:1c.0', '05:00.0', '05:00.1']
root@fiat:~# xm create /etc/xen/ubuntu-hvm.cfg 
Using config file "/etc/xen/ubuntu-hvm.cfg".
Error: pci: PCI Backend and pci-stub don't own device 0000:00:1c.0

############################################################################################################
#pci=['05:00.0', '05:00.1']
root@fiat:~# xm create /etc/xen/ubuntu-hvm.cfg 
Using config file "/etc/xen/ubuntu-hvm.cfg".
Error: (22, 'Invalid argument')

An additional error (not seen above) was complaining that I could not get say port 05:00.0 or 05:00.1 due to a PCI switch (hence why I tried obtaining the switch)

I cannot provide a guest dmesg w/ a nic on pci passthrough xm create does not pass (nor does the domU show in xm list)

The xen dmesg (from the host OS) shows the following after I run the pci assignment script to pci back

[   28.005784] xenbr0: port 1(eth2) entered forwarding state
[   51.288593] Program lshw tried to access /dev/mem between ff000->101000.
[   77.502268] xen-pciback: backend is vpci
[   77.509183] pcie_pme 0000:00:01.0:pcie01: unloading service driver pcie_pme
[   77.509352] pciback 0000:00:01.0: seizing device
[   77.509378] xen: registering gsi 16 triggering 0 polarity 1
[   77.509382] Already setup the GSI :16
[   77.514048] pcie_pme 0000:00:1c.0:pcie01: unloading service driver pcie_pme
[   77.514216] pciback 0000:00:1c.0: seizing device
[   77.514265] xen: registering gsi 17 triggering 0 polarity 1
[   77.514268] Already setup the GSI :17
[   77.549846] pciback 0000:01:00.0: seizing device
[   77.554722] pciback 0000:02:02.0: seizing device
[   77.559425] pciback 0000:02:04.0: seizing device
[   77.559823] pciback 0000:03:00.0: seizing device
[   77.559863] xen: registering gsi 18 triggering 0 polarity 1
[   77.559865] Already setup the GSI :18
[   77.661387] pciback 0000:03:00.1: seizing device
[   77.661426] xen: registering gsi 19 triggering 0 polarity 1
[   77.661429] Already setup the GSI :19
[   77.765339] pciback 0000:04:00.0: seizing device
[   77.765378] xen: registering gsi 16 triggering 0 polarity 1
[   77.765380] Already setup the GSI :16
[   77.869281] pciback 0000:04:00.1: seizing device
[   77.869321] xen: registering gsi 17 triggering 0 polarity 1
[   77.869323] Already setup the GSI :17
[   78.036978] pciback 0000:05:00.0: seizing device
[   78.052817] xen: registering gsi 16 triggering 0 polarity 1
[   78.052821] Already setup the GSI :16
[   78.121064] pciback 0000:05:00.1: seizing device
[   78.136774] xen: registering gsi 17 triggering 0 polarity 1
[   78.136778] Already setup the GSI :17

Please let me know if you need any additional info.  I am looking into Xen 4.3 to see if that fixes my issue.

Regards
Mike




On Wed, Feb 5, 2014 at 4:21 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Tue, 2014-02-04 at 12:48 -0500, Mike Neiderhauser wrote:
> Hi all,
> I am new to Xen and hyper vision in general.  I have been searching
> the mailing list and using my friend google to see if I could find the
> answer myself.  Unfortunately, everything I have tried and found does
> not work.
>
>
> I am attempting to set up a Computer with two HVM's.  To start, I
> attempted it with a single HVM.  I am able to install, configure,
> start, and VNC into the VM.  The issue is when I attempt PCI pass
> through.  I have tried attaching the pcie switch as well as individual
> pci devices.  I am trying to attach an Intel 82576 Gigabit Ethernet
> card to the HVM.  I am unsure of what information you will need, but
> included is information I felt was useful.  I have tried various PCI
> configs in the .cfg file.  From the information that I can see, the
> pci devices do appear to be mapping to the pciback driver.
>
>
> Any help with this would be greatly appreciated!

By eye it all looks quite reasonable to me.

The current configs are passing through the PCI switch in various
combinations with the devices which is most likely not what you want,
normally you should only pass the devices themselves I think (TBH I'm
not sure what happens if you pass a bridge too...).

Have you tried just passing through 05:00.0 (one of the NICs) or just
05:00.0 and .1?

What does "xm pci-list-assignable-devices" report?

What is the actual failure more? Simply not seeing the device in lspci
within the guest or seeing it but it doesn't work or ...?

Please can you post the guest dmesg with just a NIC passed through.

You might also find some information in the logs under /var/log/xen,
especially the device model log.

Ian.



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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