From f02c92598b3b58566bd94d0dc16ddbaa46451fad Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Wed, 13 May 2015 10:39:30 +0200 Subject: [PATCH] run: Use -m 512 for hw_x86_64 on qemu The base-hw kernel on x86_64 currently assumes 254 MiB of RAM. The RAM region is subtracted from the I/O mem allocator and therefore this range is not available for device I/O. If qemu is started with -m 128, the region for (emulated) PCI config space access lies within this region and I/O mem allocation in the pci_drv will fail. Giving qemu more RAM moves the PCI config space out of the 254 MiB region, making the run/libc_ffat scenario with acpi work. --- tool/run/power_on/qemu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool/run/power_on/qemu b/tool/run/power_on/qemu index 77d052366..a91e3c567 100644 --- a/tool/run/power_on/qemu +++ b/tool/run/power_on/qemu @@ -51,6 +51,10 @@ proc run_power_on { } { } if {[have_spec platform_vpb926]} { append qemu_args " -M versatilepb -m 128 " } if {[have_spec platform_vea9x4]} { append qemu_args " -M vexpress-a9 -cpu cortex-a9 -m 256 " } + if {[have_spec hw_x86_64]} { + regsub -all {\-m ([0-9])+} $qemu_args "" qemu_args + append qemu_args " -m 512 " + } # on x86, we support booting via pxe or iso/disk image if {[have_spec x86]} {