hv: add hypercall to set vcpu init state

DM will use this hypercall to initialize the UOS BSP state.

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 19:29:01 +08:00
committed by wenlingz
parent 66b53f8248
commit 3cfbc004f5
5 changed files with 72 additions and 0 deletions

View File

@@ -78,6 +78,11 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
ret = hcall_create_vcpu(vm, (uint16_t)param1, param2);
break;
case HC_SET_VCPU_REGS:
/* param1: vmid */
ret = hcall_set_vcpu_regs(vm, (uint16_t)param1, param2);
break;
case HC_ASSERT_IRQLINE:
/* param1: vmid */
ret = hcall_assert_irqline(vm, (uint16_t)param1, param2);