mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
HV: Combine the acpi loading fucntion to one place
Remove the acpi loading function from elf_loader, rawimage_loaer and bzimage_loader, and call it together in vm_sw_loader. Now the vm_sw_loader's job is not just loading sw, so we rename it to prepare_os_image. Tracked-On: #6323 Signed-off-by: Zhou, Wu <wu.zhou@intel.com> Reviewed-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -816,7 +816,7 @@ int32_t reset_vm(struct acrn_vm *vm)
|
||||
vm->arch_vm.vlapic_mode = VM_VLAPIC_XAPIC;
|
||||
|
||||
if (is_sos_vm(vm)) {
|
||||
(void)vm_sw_loader(vm);
|
||||
(void)prepare_os_image(vm);
|
||||
}
|
||||
|
||||
reset_vm_ioreqs(vm);
|
||||
@@ -932,7 +932,7 @@ void prepare_vm(uint16_t vm_id, struct acrn_vm_config *vm_config)
|
||||
}
|
||||
}
|
||||
|
||||
err = vm_sw_loader(vm);
|
||||
err = prepare_os_image(vm);
|
||||
|
||||
if (is_prelaunched_vm(vm)) {
|
||||
loaded_pre_vm_nr++;
|
||||
|
Reference in New Issue
Block a user