mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
hv: remove the vm loader for UOS in hv.
Now, we make UOS to set BSP init state by using hypercall. We could drop the old UOS loader in HV and make vm loader in HV only for SOS. Tracked-On: #1231 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -36,18 +36,16 @@ void efi_spurious_handler(int vector)
|
||||
return;
|
||||
}
|
||||
|
||||
int uefi_sw_loader(struct vm *vm, struct vcpu *vcpu)
|
||||
int uefi_sw_loader(struct vm *vm)
|
||||
{
|
||||
int ret = 0;
|
||||
struct vcpu *vcpu = get_primary_vcpu(vm);
|
||||
struct acrn_vcpu_regs *vcpu_regs = &vm0_boot_context;
|
||||
|
||||
ASSERT(vm != NULL, "Incorrect argument");
|
||||
|
||||
pr_dbg("Loading guest to run-time location");
|
||||
|
||||
if (!is_vm0(vm))
|
||||
return load_guest(vm, vcpu);
|
||||
|
||||
vlapic_restore(vcpu_vlapic(vcpu), &uefi_lapic_regs);
|
||||
|
||||
/* For UEFI platform, the bsp init regs come from two places:
|
||||
|
Reference in New Issue
Block a user