acrn-hypervisor/hypervisor/include
Wu Zhou 2edf141047 hv: add VHWP guest flag and its helper func
Currently CPU frequency control is hidden to guests, and controlled
by hypervisor. While it is sufficient in most cases, some guest OS may
still need CPU performance info to make multi-core scheduling decisions.
This is seen on Linux kernel, which uses HWP highest performance level
as CPU core's priority in multi-core scheduling (CONFIG_SCHED_MC_PRIO).
Enabling this kernel feature could improve performance as single thread
workloads are scheduled on the highest performance cores. This is
significantly useful for guests with hybrid cores.

The concept is to expose performance interface to guest who exclusively
owns pCPU assigned to it. So that Linux guest can load intel_pstate
driver which will then provide the kernel with each core's schedule
priority.

Intel_pstate driver also relies on CONFIG_ACPI_CPPC_LIB to implement
this mechanic, this means we also need to provide ACPI _CPC in DM.

This patch sets up a guest flag GUEST_FLAG_VHWP to indicate whether
the guest can have VHWP feature.

Tracked-On: #8414
Signed-off-by: Wu Zhou <wu.zhou@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2023-06-09 10:06:42 +08:00
..
arch/x86/asm hv: add VHWP guest flag and its helper func 2023-06-09 10:06:42 +08:00
common hv: add hypercall to register asyncio 2022-09-27 10:26:42 +08:00
debug hv: change sbuf to a common infrastructure 2022-09-27 10:26:42 +08:00
dm hv: vPCI: fix large bar base update 2022-10-28 05:55:20 +08:00
hw ACRN:HV:VPCI: Forward access of PCI ROM bar_reg to DM for passthru device 2022-09-23 18:12:01 +08:00
lib hv: shell: improve console to modify input easier 2022-07-28 23:31:43 +08:00
public hv: add VHWP guest flag and its helper func 2023-06-09 10:06:42 +08:00