qemu-e2k/include/hw/ppc
Alexey Kardashevskiy b4b6eb771a spapr_iommu: Add root memory region
We are going to have multiple DMA windows at different offsets on
a PCI bus. For the sake of migration, we will have as many TCE table
objects pre-created as many windows supported.
So we need a way to map windows dynamically onto a PCI bus
when migration of a table is completed but at this stage a TCE table
object does not have access to a PHB to ask it to map a DMA window
backed by just migrated TCE table.

This adds a "root" memory region (UINT64_MAX long) to the TCE object.
This new region is mapped on a PCI bus with enabled overlapping as
there will be one root MR per TCE table, each of them mapped at 0.
The actual IOMMU memory region is a subregion of the root region and
a TCE table enables/disables this subregion and maps it at
the specific offset inside the root MR which is 1:1 mapping of
a PCI address space.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-06-07 10:17:45 +10:00
..
mac_dbdma.h include/qemu/iov.h: Don't include qemu-common.h 2016-03-22 22:20:16 +01:00
openpic.h hw: cannot include hw/hw.h from user emulation 2016-05-19 16:42:28 +02:00
ppc.h ppc: use PowerPCCPU instead of CPUPPCState 2016-05-19 16:42:27 +02:00
ppc4xx.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ppc_e500.h intc/openpic: Build openpic only once 2013-07-09 21:33:02 +02:00
spapr.h spapr_iommu: Add root memory region 2016-06-07 10:17:45 +10:00
spapr_drc.h spapr_drc: enable immediate detach for unsignalled devices 2016-04-05 10:47:03 +10:00
spapr_vio.h hw: do not use VMSTATE_*TL 2016-05-19 16:42:28 +02:00
xics.h xics: report errors with the QEMU Error API 2016-02-28 16:19:02 +11:00