mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-10 13:19:31 +00:00
HV Cx: add hypercall function to retrieve host cx
The patch add function in vhm hypercall to retrieve physical cx data to VHM/DM. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -328,8 +328,10 @@ struct cpu_px_data {
|
||||
/**
|
||||
* @brief Info PM command from DM/VHM.
|
||||
*
|
||||
* The command would specify request type(i.e. get px count or data) for
|
||||
* specific VM and specific VCPU with specific state number.like P(n).
|
||||
* The command would specify request type(e.g. get px count or data) for
|
||||
* specific VM and specific VCPU with specific state number.
|
||||
* For Px, PMCMD_STATE_NUM means Px number from 0 to (MAX_PSTATE - 1),
|
||||
* For Cx, PMCMD_STATE_NUM means Cx entry index from 1 to MAX_CX_ENTRY.
|
||||
*/
|
||||
#define PMCMD_VMID_MASK 0xff000000
|
||||
#define PMCMD_VCPUID_MASK 0x00ff0000
|
||||
@@ -343,6 +345,8 @@ struct cpu_px_data {
|
||||
enum pm_cmd_type {
|
||||
PMCMD_GET_PX_CNT,
|
||||
PMCMD_GET_PX_DATA,
|
||||
PMCMD_GET_CX_CNT,
|
||||
PMCMD_GET_CX_DATA,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user