[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/4] arm64: Add the cpufreq device to show cpufreq info to gue
From: |
Ying Fang |
Subject: |
[PATCH v2 0/4] arm64: Add the cpufreq device to show cpufreq info to guest |
Date: |
Thu, 13 Feb 2020 15:36:26 +0800 |
On ARM64 platform, cpu frequency is retrieved via ACPI CPPC.
A virtual cpufreq device based on ACPI CPPC is created to
present cpu frequency info to the guest.
The default frequency is set to host cpu nominal frequency,
which is obtained from the host CPPC sysfs. Other performance
data are set to the same value, since we don't support guest
performance scaling here.
Performance counters are also not emulated and they simply
return 1 if read, and guest should fallback to use desired
performance value as the current performance.
Guest kernel version above 4.18 is required to make it work.
Ying Fang (4):
acpi: Add aml_generic_register
acpi/cppc: Add ACPI CPPC registers
arm: Add the cpufreq device model
arm: Create the cpufreq device
default-configs/aarch64-softmmu.mak | 1 +
hw/acpi/Kconfig | 4 +
hw/acpi/Makefile.objs | 1 +
hw/acpi/aml-build.c | 22 +++
hw/acpi/cpufreq.c | 249 ++++++++++++++++++++++++++++
hw/arm/virt-acpi-build.c | 74 ++++++++-
hw/arm/virt.c | 14 ++
include/hw/acpi/acpi-defs.h | 32 ++++
include/hw/acpi/aml-build.h | 3 +
include/hw/arm/virt.h | 1 +
10 files changed, 399 insertions(+), 2 deletions(-)
create mode 100644 hw/acpi/cpufreq.c
--
2.19.1
- [PATCH v2 0/4] arm64: Add the cpufreq device to show cpufreq info to guest,
Ying Fang <=
- [PATCH v2 1/4] acpi: Add aml_generic_register, Ying Fang, 2020/02/13
- [PATCH v2 2/4] acpi/cppc: Add ACPI CPPC registers, Ying Fang, 2020/02/13
- [PATCH v2 3/4] arm: Add the cpufreq device model, Ying Fang, 2020/02/13
- [PATCH v2 4/4] arm: Create the cpufreq device, Ying Fang, 2020/02/13
- Re: [PATCH v2 0/4] arm64: Add the cpufreq device to show cpufreq info to guest, no-reply, 2020/02/13
- Re: [PATCH v2 0/4] arm64: Add the cpufreq device to show cpufreq info to guest, Andrew Jones, 2020/02/13