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>
Showing
- hw/pci/pci.c 19 additions, 20 deletionshw/pci/pci.c
- hw/ppc/spapr_pci.c 4 additions, 4 deletionshw/ppc/spapr_pci.c
- include/hw/pci-host/spapr.h 1 addition, 0 deletionsinclude/hw/pci-host/spapr.h
- include/hw/pci/pci.h 2 additions, 2 deletionsinclude/hw/pci/pci.h
- include/hw/pci/pci_bus.h 2 additions, 2 deletionsinclude/hw/pci/pci_bus.h
Loading
Please register or sign in to comment