spapr_pci: Allow PCI host bridge DMA window to be configured
commitf93caaac36ec3b030184055596cb56f64d0de988
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Sep 2015 23:56:44 +0000 (24 09:56 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 22 Oct 2015 23:38:10 +0000 (23 10:38 +1100)
tree400cea0118975035cfe932fd8c6a5812e6b1c78e
parentfd5da5c47264a57c7d01507eaf50bf3d288ba8a4
spapr_pci: Allow PCI host bridge DMA window to be configured

At present the PCI host bridge (PHB) for the pseries machine type has a
fixed DMA window from 0..1GB (in PCI address space) which is mapped to real
memory via the PAPR paravirtualized IOMMU.

For better support of VFIO devices, we're going to want to allow for
different configurations of the DMA window.

Eventually we'll want to allow the guest itself to reconfigure the window
via the PAPR dynamic DMA window interface, but as a preliminary this patch
allows the user to reconfigure the window with new properties on the PHB
device.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
hw/ppc/spapr_pci.c
include/hw/pci-host/spapr.h