pci: use memory core for iommu support
authorAvi Kivity <avi.kivity@gmail.com>
Tue, 30 Oct 2012 11:47:48 +0000 (13:47 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2013 14:32:47 +0000 (16:32 +0200)
commite00387d58243d4ae24ac68008a2aea76313ab997
tree4ddf35610b30e5f3a5a063c66dc8d539e34abf79
parent24addbc76dcbb1d1c85b3062bbf7a030831cc7a9
pci: use memory core for iommu support

Use the new iommu support in the memory core for iommu support.  The only
user, spapr, is also converted, but it still provides a DMAContext
interface until the non-PCI bits switch to AddressSpace.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi.kivity@gmail.com>
[ Do not calls memory_region_del_subregion() on the device's
  bus_master_enable_region, it is an alias; return an AddressSpace
  from the IOMMU hook and remove the destructor hook. - David Gibson ]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/pci/pci.c
hw/ppc/spapr_pci.c
include/hw/pci-host/spapr.h
include/hw/pci/pci.h
include/hw/pci/pci_bus.h