[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/4] arm64: Add the cpufreq device to show cpufreq info to guest
From: |
fangying1 |
Subject: |
[PATCH 0/4] arm64: Add the cpufreq device to show cpufreq info to guest |
Date: |
Thu, 13 Feb 2020 10:07:08 +0800 |
From: Ying Fang <address@hidden>
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_virt: add the cpufreq device model
arm_virt: 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 | 247 ++++++++++++++++++++++++++++
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, 397 insertions(+), 2 deletions(-)
create mode 100644 hw/acpi/cpufreq.c
--
2.19.1
- [PATCH 0/4] arm64: Add the cpufreq device to show cpufreq info to guest,
fangying1 <=
- Re: [PATCH 0/4] arm64: Add the cpufreq device to show cpufreq info to guest, no-reply, 2020/02/12
- [PATCH 3/4] arm: Add the cpufreq device model, fangying1, 2020/02/12
- [PATCH 1/4] acpi: Add aml_generic_register, fangying1, 2020/02/12
- [PATCH 4/4] arm: Create the cpufreq device, fangying1, 2020/02/12
- [PATCH 2/4] acpi/cppc: Add ACPI CPPC registers, fangying1, 2020/02/12