mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
HV: add hypercall interface of get vcpu state data
We can use this interface for VHM to pass per-cpu power state data to guest per its request. For now the vcpu power state is per-vm, this could be changed if per-cpu power state support is required in the future. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -142,6 +142,10 @@ int vmcall_handler(struct vcpu *vcpu)
|
||||
ret = hcall_initialize_trusty(vcpu, param1);
|
||||
break;
|
||||
|
||||
case HC_PM_GET_CPU_STATE:
|
||||
ret = hcall_get_cpu_pm_state(vm, param1, param2);
|
||||
break;
|
||||
|
||||
default:
|
||||
pr_err("op %d: Invalid hypercall\n", hypcall_id);
|
||||
ret = -1;
|
||||
|
Reference in New Issue
Block a user