In the Z-Architecture, the IOMMU information may change on a device
basis.
until this patch series we used hardcoded values to define the
IOMMU aperture we provide to the guest during PCI enumeration.

Let's ask the host about the IOMMU specific configuration using
VFIO capabilities.

NOTES:
1- You will need the according Linux patch to test this.

2- I am really not happy to add S390 dedicated code in the
   VFIO common code, as do SPAPR, but I did not find a better
   solution.
   Any idea?

Pierre Morel (3):
  vfio: Linux header placeholder
  vfio/pci: Get real IOMMU information from container
  s390x/pci: Reporting the host aperture to the guest

 hw/s390x/s390-pci-bus.c       |  2 +-
 hw/s390x/s390-pci-bus.h       |  3 ++
 hw/s390x/s390-pci-inst.c      | 20 ++++++++++--
 hw/vfio/common.c              | 75 +++++++++++++++++++++++++++++++++----------
 include/hw/vfio/vfio-common.h |  3 ++
 linux-headers/linux/vfio.h    | 65 +++++++++++++++++++++++++++++++++++--
 6 files changed, 144 insertions(+), 24 deletions(-)

-- 
2.7.4


Reply via email to