]> Git Repo - qemu.git/commitdiff
PPC: e500: Move CCSR and MMIO space to upper end of address space
authorAlexander Graf <[email protected]>
Fri, 7 Nov 2014 16:07:03 +0000 (17:07 +0100)
committerAlexander Graf <[email protected]>
Wed, 7 Jan 2015 15:16:24 +0000 (16:16 +0100)
On e500 we're basically guaranteed to have 36bits of physical address space
available for our enjoyment. Older chips (like the mpc8544) only had 32bits,
but everything from e500v2 onwards bumped it up.

It's reasonably safe to assume that if you're using the PV machine, your guest
kernel is configured to support 36bit physical address space. So in order to
support more guest RAM, we can move CCSR and other MMIO windows right below the
end of our 36bit address space, just like later SoC versions of e500 do.

With this patch, I'm able to successfully spawn an e500 VM with -m 48G.

Signed-off-by: Alexander Graf <[email protected]>
hw/ppc/e500plat.c

index 1600fcf21919c22a3fb85fe5a37375acfeb1e929..1b8a68d2233172d2aa44609c3658fbec74989266 100644 (file)
@@ -41,9 +41,9 @@ static void e500plat_init(MachineState *machine)
         .platform_bus_size = (128ULL * 1024 * 1024),
         .platform_bus_first_irq = 5,
         .platform_bus_num_irqs = 10,
-        .ccsrbar_base = 0xE0000000ULL,
-        .pci_pio_base = 0xE1000000ULL,
-        .spin_base = 0xEF000000ULL,
+        .ccsrbar_base = 0xFE0000000ULL,
+        .pci_pio_base = 0xFE1000000ULL,
+        .spin_base = 0xFEF000000ULL,
     };
 
     /* Older KVM versions don't support EPR which breaks guests when we announce
This page took 0.026257 seconds and 4 git commands to generate.