Patchwork add 40-48 physical address range to seabios

login
register
mail settings
Submitter Andrea Arcangeli
Date Sept. 15, 2010, 5:14 p.m.
Message ID <20100915171417.GN5981@random.random>
Download mbox | patch
Permalink /patch/64856/
State New
Headers show

Comments

Andrea Arcangeli - Sept. 15, 2010, 5:14 p.m.
Subject: add 40-48 physical address range to seabios

From: Andrea Arcangeli <aarcange@redhat.com>

Needed to show >1TB RAM to guests.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
---

Patch

diff --git a/hw/pc.c b/hw/pc.c
index 9c08573..7e1f2e9 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -360,6 +360,7 @@  void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size,
         rtc_set_memory(s, 0x5b, (unsigned int)above_4g_mem_size >> 16);
         rtc_set_memory(s, 0x5c, (unsigned int)above_4g_mem_size >> 24);
         rtc_set_memory(s, 0x5d, (uint64_t)above_4g_mem_size >> 32);
+        rtc_set_memory(s, 0x5e, (uint64_t)above_4g_mem_size >> 40);
     }
 
     if (ram_size > (16 * 1024 * 1024))