mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: load host pm S state data while create vm0
The pm S state data is from host ACPI info and needed for S3/S5 implementation. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#define PM_H
|
||||
|
||||
void vm_setup_cpu_state(struct vm *vm);
|
||||
int vm_load_pm_s_state(struct vm *vm);
|
||||
int validate_pstate(struct vm *vm, uint64_t perf_ctl);
|
||||
struct cpu_cx_data* get_target_cx(struct vm *vm, uint8_t cn);
|
||||
|
||||
|
@@ -63,6 +63,7 @@ struct vm_pm_info {
|
||||
struct cpu_px_data px_data[MAX_PSTATE];
|
||||
uint8_t cx_cnt; /* count of all Cx entries */
|
||||
struct cpu_cx_data cx_data[MAX_CSTATE];
|
||||
struct pm_s_state_data *sx_state_data; /* data for S3/S5 implementation */
|
||||
};
|
||||
|
||||
/* VM guest types */
|
||||
|
Reference in New Issue
Block a user