acrn-hypervisor/devicemodel/hw
Wu Zhou 8c38cd5734 dm: add _CPC to guest ACPI pm tables
The optional object _CPC declares an interface that allows OSPM to
transition the processor into a performance state based on a continuous
range of allowable values.

It is associated with HWP on intel CPUs. Although Linux intel_pstate driver
can have its performance managing abilities without _CPC, it may still
need this _CPC table to implement some features such as providing the kernel
multi-core scheduler with core priority info.

As currently we are giving guests a vHWP interface for the multi-core
scheduler, this patch adds _CPC to the guest ACPI. _CPC is written only
when the hypervisor decides the guest should have vHWP, using the
existing pm hypercall ACRN_PMCMD_GET_PX_CNT. The idea is:
- If the VM supports vHWP, then the guest is having continuous p-state.
  Thus it doesn't have a specific px_cnt. The hypercall returns success
  and px_cnt = 0.
- If the VM's p-state is hidden or hv doesn't have its p-state info,
  the hypercall returns fail.

Tracked-On: #8414
Signed-off-by: Wu Zhou <wu.zhou@intel.com>
Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>
2023-06-09 10:06:42 +08:00
..
mmio dm: fix the secure coding style violations 2022-08-02 18:01:24 +08:00
pci dm: gvt: add bound check in gvt_init_config() 2023-05-18 11:26:17 +08:00
platform dm: add _CPC to guest ACPI pm tables 2023-06-09 10:06:42 +08:00
block_if.c dm: blockif: Convert print output to acrn-dm logger 2020-09-10 09:33:25 +08:00
gc.c dm: virtio-gpu: VGA compability support 2022-03-28 15:26:20 +08:00
uart_core.c ACRN: misc: Unify terminology for sos/uos rin macro 2021-11-02 10:00:55 +08:00
usb_core.c DM USB: modify disconnecting logic to support Windows 10 2019-09-26 11:29:22 +08:00
vdisplay_sdl.c ACRN:DM:VGPU: Add more check to avoid no geometry parameter for virtio-gpu 2022-08-16 15:29:27 +08:00
vga.c dm: vga: remove all the assertion. 2022-11-02 15:03:35 +08:00