VFIO update 2016-07-18
The following changes since commit 3913d3707e3debfbf0d2d014a1a793394993b088:
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160718' into staging (2016-07-18 11:24:15 +0100)
are available in the git repository at:
git://github.com/awilliam/qemu-vfio.git tags/vfio-update-20160718.0
for you to fetch changes up to 383a7af7ecd1f1b6587552b71b8bc517c6edea88:
vfio/pci: Hide ARI capability (2016-07-18 10:55:17 -0600)
----------------------------------------------------------------
VFIO update 2016-07-18
One fix for 2.7-rc0 which hides the ARI extended capability, fixing multifunction support in PCIe configurations where the assigned device function topology does not match the host (Alex Williamson)
----------------------------------------------------------------
Alex Williamson (1):
vfio/pci: Hide ARI capability
hw/vfio/pci.c | 1 + 1 file changed, 1 insertion(+)
[Qemu-devel] [PULL 1/1] vfio/pci: Hide ARI capability
QEMU supports ARI on downstream ports and assigned devices may support ARI in their extended capabilities. The endpoint ARI capability specifies the next function, such that the OS doesn't need to walk each possible function, however this next function is relative to the host, not the guest. This leads to device discovery issues when we combine separate functions into virtual multi-function packages in a guest. For example, SR-IOV VFs are not enumerated by simply probing the function address space, therefore the ARI next-function field is zero. When we combine multiple VFs together as a multi-function device in the guest, the guest OS identifies ARI is enabled, relies on this next-function field, and stops looking for additional function after the first is found.
Long term we should expose the ARI capability to the guest to enable configurations with more than 8 functions per slot, but this requires additional QEMU PCI infrastructure to manage the next-function field for multiple, otherwise independent devices. In the short term, hiding this capability allows equivalent functionality to what we currently have on non-express chipsets.
--- hw/vfio/pci.c | 1 + 1 file changed, 1 insertion(+)
hw/vfio/pci.c +1 -0
@@ -1828,6 +1828,7 @@ static int vfio_add_ext_cap(VFIOPCIDevice *vdev)switch (cap_id) {case PCI_EXT_CAP_ID_SRIOV :/* Read-only VF BARs confuse OVMF */ +case PCI_EXT_CAP_ID_ARI :/* XXX Needs next function virtualization */ trace_vfio_add_ext_cap_dropped (vdev->vbasedev.name, cap_id, next);break ;default :
Peter Maydell
AppliedQuoted 16 lines · Alex Williamson
The following changes since commit
3913d3707e3debfbf0d2d014a1a793394993b088:Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160718' into staging (2016-07-18 11:24:15 +0100)
are available in the git repository at:
git://github.com/awilliam/qemu-vfio.gittags/vfio-update-20160718.0for you to fetch changes up to
383a7af7ecd1f1b6587552b71b8bc517c6edea88:vfio/pci: Hide ARI capability (2016-07-18 10:55:17 -0600)
----------------------------------------------------------------
VFIO update 2016-07-18
Quoted 7 lines
One fix for 2.7-rc0 which hides the ARI extended capability, fixing multifunction support in PCIe configurations where the assigned device function topology does not match the host (Alex Williamson)
----------------------------------------------------------------
Alex Williamson (1):
vfio/pci: Hide ARI capability
Applied, thanks.
-- PMM