mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +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:
@@ -333,6 +333,17 @@ int64_t hcall_setup_sbuf(struct vm *vm, uint64_t param);
|
||||
*
|
||||
* @return 0 on success, non-zero on error.
|
||||
*/
|
||||
|
||||
int64_t hcall_get_cpu_pm_state(struct vm *vm, uint64_t cmd, uint64_t param);
|
||||
|
||||
/**
|
||||
* @brief Get VCPU Power state.
|
||||
*
|
||||
* @param VCPU power state data
|
||||
*
|
||||
* @return 0 on success, non-zero on error.
|
||||
*/
|
||||
|
||||
int64_t hcall_world_switch(struct vcpu *vcpu);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user