summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-10-10 10:30:27 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-11-04 12:31:33 +0100
commit7db16f2480db5e246d34d0c453cff4f58549df0e (patch)
tree6e2f8da9276bf136c8564d558d52fc3603623e8f
parent7d67110f2d9a6a2d6b5215a948abc95d07258735 (diff)
downloadqemu-7db16f2480db5e246d34d0c453cff4f58549df0e.tar.gz
pc: register e820 entries for ram
So RAM shows up in the new etc/e820 fw_cfg file. Cc: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--hw/i386/pc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index a653ae4284..12c436e7f1 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1174,13 +1174,7 @@ FWCfgState *pc_memory_init(MemoryRegion *system_memory,
memory_region_init_alias(ram_below_4g, NULL, "ram-below-4g", ram,
0, below_4g_mem_size);
memory_region_add_subregion(system_memory, 0, ram_below_4g);
- if (0) {
- /*
- * Ideally we should do that too, but that would ruin the e820
- * reservations added by seabios before initializing fw_cfg.
- */
- e820_add_entry(0, below_4g_mem_size, E820_RAM);
- }
+ e820_add_entry(0, below_4g_mem_size, E820_RAM);
if (above_4g_mem_size > 0) {
ram_above_4g = g_malloc(sizeof(*ram_above_4g));
memory_region_init_alias(ram_above_4g, NULL, "ram-above-4g", ram,