acrn-hypervisor/devicemodel/hw
Zhou, Wu 7d0c05f3ff dm: Skip injecting _PPC and _PCT when _PSS is not constructed
This patch is to eliminate kernel error msgs:
'ACPI Error: AE_NOT_FOUND, Evaluating _PSS'

This is caused by missing of _PSS table in guest ACPI. It would
happen when pstate is not injected to the guest.

Kernel ACPI pstate driver first probes
_PPC(performance capabilites) and _PCT(performance control)
in ACPI. If they exist, then it loads the _PSS(performance state).
If _PPC/_PCT are presented while _PSS is missing, it prints
the error msg.

In acrn-dm, _PPC/_PCT are hard-coded to all vCPUs, while _PSS
are constructed with the pCPUs' pstate data. This is base on
assumption that all VMs can have pstate.

Now the pstate is given to VM only when the VM is not sharing
any CPU(and no RTVM is setup in the scenario).
When the VM doesn't have pstate, the hypercall will return px_cnt=0,
and the _PSS is not constructed. In this case, _PPC/PCT should not
be injected, too.

Tracked-On: #6848

Signed-off-by: Zhou, Wu <wu.zhou@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
Acked-by: Eddie Dong <eddie.dong@Intel.com>
2021-11-17 16:33:11 +08:00
..
mmio dm: Fix potential overflow bug 2021-11-04 10:34:13 +08:00
pci ACRN: DM: Vulnerable coding style in device-model 2021-11-08 14:26:13 +08:00
platform dm: Skip injecting _PPC and _PCT when _PSS is not constructed 2021-11-17 16:33:11 +08:00
block_if.c dm: blockif: Convert print output to acrn-dm logger 2020-09-10 09:33:25 +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