xen PV passthru: assign SR-IOV virtual functions to separate virtual slots
authorLaszlo Ersek <lersek@redhat.com>
Wed, 17 Oct 2012 09:55:55 +0000 (11:55 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Oct 2012 19:17:47 +0000 (15:17 -0400)
commit8a5248fe10b101104d92d01438f918e899414fd1
treea995ee103e16708cc393fcf11f6bdef07de9adb7
parente9d1aa05da264cf7e1906b81a90d6abfdbe3700b
xen PV passthru: assign SR-IOV virtual functions to separate virtual slots

VFs are reported as single-function devices in PCI_HEADER_TYPE, which
causes pci_scan_slot() in the PV domU to skip all VFs beyond #0 in the
pciback-provided slot. Avoid this by assigning each VF to a separate
virtual slot.

Acked-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/vpci.c