]> git.baikalelectronics.ru Git - kernel.git/commit
xen-pciback: redo VF placement in the virtual topology
authorJan Beulich <jbeulich@suse.com>
Tue, 18 May 2021 16:13:42 +0000 (18:13 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 21 May 2021 07:55:13 +0000 (09:55 +0200)
commit42da02310566cd973f52e4a1e2e9f880dd890468
tree778913effa656fbb5e1e519863982af48b3c0fdb
parent616e3537b6703243a6efc2331493dde6f6987df3
xen-pciback: redo VF placement in the virtual topology

The commit referenced below was incomplete: It merely affected what
would get written to the vdev-<N> xenstore node. The guest would still
find the function at the original function number as long as
__xen_pcibk_get_pci_dev() wouldn't be in sync. The same goes for AER wrt
__xen_pcibk_get_pcifront_dev().

Undo overriding the function to zero and instead make sure that VFs at
function zero remain alone in their slot. This has the added benefit of
improving overall capacity, considering that there's only a total of 32
slots available right now (PCI segment and bus can both only ever be
zero at present).

Fixes: d2b858114399 ("xen PV passthru: assign SR-IOV virtual functions to separate virtual slots")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/8def783b-404c-3452-196d-3f3fd4d72c9e@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xen-pciback/vpci.c