mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +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
@@ -7,6 +7,20 @@
|
||||
#include <hypervisor.h>
|
||||
#include <zeropage.h>
|
||||
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
static uint32_t create_e820_table(struct e820_entry *param_e820)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0U; i < NUM_E820_ENTRIES; i++) {
|
||||
param_e820[i].baseaddr = e820_default_entries[i].baseaddr;
|
||||
param_e820[i].length = e820_default_entries[i].length;
|
||||
param_e820[i].type = e820_default_entries[i].type;
|
||||
}
|
||||
|
||||
return NUM_E820_ENTRIES;
|
||||
}
|
||||
#else
|
||||
static uint32_t create_e820_table(struct e820_entry *param_e820)
|
||||
{
|
||||
uint32_t i;
|
||||
@@ -22,6 +36,7 @@ static uint32_t create_e820_table(struct e820_entry *param_e820)
|
||||
|
||||
return e820_entries;
|
||||
}
|
||||
#endif
|
||||
|
||||
static uint64_t create_zero_page(struct vm *vm)
|
||||
{
|
||||
|
Reference in New Issue
Block a user