mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: merge SBL and UEFI related stuff under boot
This patch mainly unifies init_vm_boot_info's implementation between SBL and UEFI. Tracked-On: #2708 Signed-off-by: Tw <wei.tan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <mmu.h>
|
||||
#include <logmsg.h>
|
||||
#include <cat.h>
|
||||
#include <firmware.h>
|
||||
|
||||
vm_sw_loader_t vm_sw_loader;
|
||||
|
||||
@@ -329,7 +330,7 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
|
||||
create_sos_vm_e820(vm);
|
||||
prepare_sos_vm_memmap(vm);
|
||||
|
||||
status = init_vm_boot_info(vm);
|
||||
status = firmware_init_vm_boot_info(vm);
|
||||
if (status == 0) {
|
||||
init_fallback_iommu_domain(vm->iommu, vm->vm_id, vm->arch_vm.nworld_eptp);
|
||||
} else {
|
||||
@@ -358,7 +359,7 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
create_prelaunched_vm_e820(vm);
|
||||
prepare_prelaunched_vm_memmap(vm, vm_config);
|
||||
(void)init_vm_boot_info(vm);
|
||||
(void)firmware_init_vm_boot_info(vm);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -14,6 +14,7 @@
|
||||
#include <vmx.h>
|
||||
#include <vm.h>
|
||||
#include <logmsg.h>
|
||||
#include <firmware.h>
|
||||
|
||||
/* Push sp magic to top of stack for call trace */
|
||||
#define SWITCH_TO(rsp, to) \
|
||||
|
Reference in New Issue
Block a user