ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices
commitfcad0d2121976df4b422b4007a5eb7fcaac01134
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 13 Mar 2018 17:17:31 +0000 (13 11:17 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 13 Mar 2018 17:17:31 +0000 (13 11:17 -0600)
tree44f00a94ee883d7f7670b304834b62e9e92b2175
parentae0215b2bb56a9d5321a185dde133bfdd306a4c0
ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices

This adds a possibility for the platform to tell VFIO not to emulate MSIX
so MMIO memory regions do not get split into chunks in flatview and
the entire page can be registered as a KVM memory slot and make direct
MMIO access possible for the guest.

This enables the entire MSIX BAR mapping to the guest for the pseries
platform in order to achieve the maximum MMIO preformance for certain
devices.

Tested on:
LSI Logic / Symbios Logic SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/ppc/spapr.c
hw/vfio/pci.c