summaryrefslogtreecommitdiff
path: root/hw/ppc/e500plat.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-11-12 22:44:52 +0100
committerAlexander Graf <agraf@suse.de>2015-01-07 16:16:24 +0100
commitcb3778a0455a2e5a48d7ef0ec8dc656313820389 (patch)
tree0d10c66cb36948daeec42f89fa1344c83378e6de /hw/ppc/e500plat.c
parent44045ce9740945056a58ecb53d2af9ae00083632 (diff)
downloadqemu-cb3778a0455a2e5a48d7ef0ec8dc656313820389.tar.gz
qemu-cb3778a0455a2e5a48d7ef0ec8dc656313820389.tar.bz2
qemu-cb3778a0455a2e5a48d7ef0ec8dc656313820389.zip
PPC: e500 pci host: Add support for ATMUs
The e500 PCI controller has configurable windows that allow a guest OS to selectively map parts of the PCI bus space to CPU address space and to selectively map parts of the CPU address space for DMA requests into PCI visible address ranges. So far, we've simply assumed that this mapping is 1:1 and ignored it. However, the PCICSRBAR (CCSR mapped in PCI bus space) always has to live inside the first 32bits of address space. This means if we always treat all mappings as 1:1, this map will collide with our RAM map from the CPU's point of view. So this patch adds proper ATMU support which allows us to keep the PCICSRBAR below 32bits local to the PCI bus and have another, different window to PCI BARs at the upper end of address space. We leverage this on e500plat though, mpc8544ds stays virtually 1:1 like it was before, but now also goes via ATMU. With this patch, I can run guests with lots of RAM and not coincidently access MSI-X mappings while I really want to access RAM. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/e500plat.c')
-rw-r--r--hw/ppc/e500plat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/e500plat.c b/hw/ppc/e500plat.c
index 1b8a68d223..14b14eaa7d 100644
--- a/hw/ppc/e500plat.c
+++ b/hw/ppc/e500plat.c
@@ -43,6 +43,8 @@ static void e500plat_init(MachineState *machine)
.platform_bus_num_irqs = 10,
.ccsrbar_base = 0xFE0000000ULL,
.pci_pio_base = 0xFE1000000ULL,
+ .pci_mmio_base = 0xC00000000ULL,
+ .pci_mmio_bus_base = 0xE0000000ULL,
.spin_base = 0xFEF000000ULL,
};