HV Cx: load cx data while create VM

Each VM would have its own Cx data, for now we copy it from boot_cpu_info.

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-18 00:07:38 +08:00
committed by Jack Ren
parent 373a828058
commit 1c3b7a629a
2 changed files with 32 additions and 1 deletions

View File

@@ -81,8 +81,10 @@ struct vm_sw_info {
};
struct vm_pm_info {
uint8_t px_cnt;
uint8_t px_cnt; /* count of all Px states */
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];
};
/* VM guest types */