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:
Zhou, Wu
2021-08-10 16:24:49 +08:00
committed by wenlingz
parent e78aacbe55
commit 53f6720d13
5 changed files with 7 additions and 12 deletions

View File

@@ -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++;