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

@@ -661,6 +661,7 @@ int prepare_vcpu(struct vm *vm, uint16_t pcpu_id)
} else {
return -EINVAL;
}
vm_sw_loader(vm);
} else {
#ifdef CONFIG_EFI_STUB
/* currently non-vm0 will boot kernel directly */
@@ -670,7 +671,6 @@ int prepare_vcpu(struct vm *vm, uint16_t pcpu_id)
#endif
}
#endif //CONFIG_PARTITION_MODE
vm_sw_loader(vm, vcpu);
} else {
vcpu->arch_vcpu.cpu_mode = CPU_MODE_REAL;
}

View File

@@ -304,11 +304,11 @@ int reset_vm(struct vm *vm)
foreach_vcpu(i, vm, vcpu) {
reset_vcpu(vcpu);
vcpu->arch_vcpu.cpu_mode = CPU_MODE_REAL;
if (is_vcpu_bsp(vcpu)) {
vm_sw_loader(vm, vcpu);
}
}
if (is_vm0(vm)) {
vm_sw_loader(vm);
}
vioapic_reset(vm_ioapic(vm));