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:
Yin Fengwei
2018-10-03 20:07:39 +08:00
committed by wenlingz
parent fc575460a3
commit b454a067be
5 changed files with 11 additions and 55 deletions

View File

@@ -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: