HV: load cpu px data in boot

The patch takes Intel ATOM A3960 as example that hard code all Px info
which is needed for Px control into Acrn HV and load it in boot process.

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Victor Sun
2018-04-04 14:29:46 +08:00
committed by lijinxia
parent 5f406fb335
commit 1ab5010910
6 changed files with 170 additions and 0 deletions

View File

@@ -288,6 +288,19 @@ struct acrn_vm_pci_msix_remap {
*/
#define GUEST_CFG_OFFSET 0xd0000
/**
* @brief Info The power state data of a VCPU.
*
*/
struct cpu_px_data {
uint64_t core_frequency; /* megahertz */
uint64_t power; /* milliWatts */
uint64_t transition_latency; /* microseconds */
uint64_t bus_master_latency; /* microseconds */
uint64_t control; /* control value */
uint64_t status; /* success indicator */
} __attribute__((aligned(8)));
/**
* @}
*/