mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: Create E820 entries for OS in partitioning mode ACRN
1) This patch creates static E820 entries for VMs launced by ACRN in partition mode. 2) Moves vm_description entries from bsp/sbl/ to partition/ 3) Removes unused API get_vm_desc_base Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
lijinxia
parent
ab2961473f
commit
c25a62e5b0
@@ -104,6 +104,18 @@ void init_e820(void);
|
||||
void obtain_e820_mem_info(void);
|
||||
extern uint32_t e820_entries;
|
||||
extern struct e820_entry e820[E820_MAX_ENTRIES];
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
/*
|
||||
* Default e820 mem map:
|
||||
*
|
||||
* Assumption is every VM launched by ACRN in partition mode uses 2G of RAM.
|
||||
* there is reserved memory of 64K for MPtable and PCI hole of 512MB
|
||||
*/
|
||||
#define NUM_E820_ENTRIES 5U
|
||||
extern const struct e820_entry e820_default_entries[NUM_E820_ENTRIES];
|
||||
#endif
|
||||
|
||||
extern uint32_t boot_regs[2];
|
||||
extern struct e820_mem_params e820_mem;
|
||||
|
||||
|
Reference in New Issue
Block a user