acrn-hypervisor/hypervisor/common
Yuan Lu 95bfc87eec hv: hypercall: change condition for hcall_get_cpu_pm_state
After rebooting guest, CPPC initialization failed because _CST and _CPC
missed in DSDT table. When writing _CST and _CPC in DSDT table, it gets
cx_cnt or px_cnt as condition. Getting cx_cnt or px_cnt triggers
the hypercall hcall_get_cpu_pm_state. The hypercall hcall_get_cpu_pm_state
uses VM_CREATED as VM state's condition. While, after rebooting guest,
the VM state is VM_PAUSED when writing _CST and _CPC in DSDT table.
Therefore, changing VM state's condition from VM_CREATED to VM_CREATED or
VM_PAUSED for hcall_get_cpu_pm_state can solve the CPPC initialization
failed issue after rebooting guest.

Tracked-On: #8695
Signed-off-by: Yuan Lu <yuan.y.lu@intel.com>
Reviewed-by: Fei Li <fei1.li@intel.com>
2024-08-16 09:21:26 +08:00
..
delay.c hv/mod_timer: separate delay functions from the timer module 2021-05-18 16:43:28 +08:00
efi_mmap.c HV: fix build issue on RELEASE version 2021-11-16 19:01:44 +08:00
event.c hv: support halt in hv idle 2023-09-15 11:52:40 +08:00
hv_main.c hv: sched: Add sched_params struct for thread parameters 2023-09-18 16:26:05 +08:00
hypercall.c hv: hypercall: change condition for hcall_get_cpu_pm_state 2024-08-16 09:21:26 +08:00
irq.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
ptdev.c ptirq: Fix ptirq hash tables 2023-04-13 12:24:57 +08:00
sbuf.c hv: add max_len for sbuf_put param 2024-02-20 11:52:02 +08:00
sched_bvt.c hv: s3: add timer support 2024-06-27 11:26:09 +08:00
sched_iorr.c hv: s3: add timer support 2024-06-27 11:26:09 +08:00
sched_noop.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
sched_prio.c hv: sched: Fix scheduler priority issue 2024-05-08 14:52:23 +08:00
schedule.c hv: trace: show cpu usage of vms in pcpu sharing case 2024-06-28 12:55:23 +08:00
softirq.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
thermal.c hv: enable thermal lvt interrupt 2024-05-16 09:40:32 +08:00
ticks.c hv/mod_timer: split tsc handling code from timer. 2021-05-18 16:43:28 +08:00
timer.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
trusty_hypercall.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vm_event.c hv: add max_len for sbuf_put param 2024-02-20 11:52:02 +08:00
vm_load.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00