DM: change high RAM start address to 4GB for post-launched VM

ACRN didn't support dynamic memory allocation. SO it would reserve
a big page pool and use the GPA as index to get a page to do EPT
mapping. In order to save memory, we put high MMIO windows to [4G, 5G].
AFter we support dynamic page allocation for EPT mapping, we move
high MMIO windows to where it used to ([256G, 512G]) for 39 bits physical
address), we could move high memory to where is used to too ([4G, 4G +
size]).

Tracked-On: #5913
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
Tao Yuhong
2021-03-16 07:09:26 -04:00
committed by wenlingz
parent 5ceae97ab4
commit 8ed1d8aa5e
3 changed files with 6 additions and 3 deletions

View File

@@ -43,6 +43,8 @@
#define LOWRAM_E820_ENTRY 1
#define HIGHRAM_E820_ENTRY 6
#define HIGHRAM_START_ADDR 0x100000000UL /* 4GB */
/* Defines a single entry in an E820 memory map. */
struct e820_entry {
/** The base address of the memory range. */