mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: make hypercall HC_CREATE_VCPU empty
Now, we create vcpus while VM being created in hypervisor. The create vcpu hypercall will not be used any more. For compatbility, keep the hypercall HC_CREATE_VCPU do nothing. v4: Don't remove HC_CREATE_VCPU hypercall, let it do nothing. Tracked-On: #3663 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
0ea12a45d4
commit
f4ce9cc4a2
@@ -96,12 +96,7 @@ static int32_t dispatch_sos_hypercall(const struct acrn_vcpu *vcpu)
|
||||
break;
|
||||
|
||||
case HC_CREATE_VCPU:
|
||||
/* param1: relative vmid to sos, vm_id: absolute vmid */
|
||||
if (vmid_is_valid) {
|
||||
spinlock_obtain(&vmm_hypercall_lock);
|
||||
ret = hcall_create_vcpu(sos_vm, vm_id, param2);
|
||||
spinlock_release(&vmm_hypercall_lock);
|
||||
}
|
||||
ret = 0;
|
||||
break;
|
||||
|
||||
case HC_SET_VCPU_REGS:
|
||||
|
Reference in New Issue
Block a user