[PATCH 3/4] arm: Add the cpufreq device model

2020-02-12 Thread fangying1
From: Ying Fang On ARM64 platform, CPU frequency is retrieved by ACPI CPPC, so here we create the virtual cpufreq device to present the CPPC registers and ACPI _CPC objects. The default frequency is set host CPU nominal frequency, which is obtained from the host CPPC sysfs. Other performance dat

[PATCH 0/4] arm64: Add the cpufreq device to show cpufreq info to guest

2020-02-12 Thread fangying1
From: Ying Fang 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 performanc

[PATCH 2/4] acpi/cppc: Add ACPI CPPC registers

2020-02-12 Thread fangying1
From: Ying Fang The Continuous Performance Control Package is used to describe the ACPI CPPC registers. Signed-off-by: Heyi Guo Signed-off-by: Ying Fang --- hw/arm/virt-acpi-build.c| 74 - hw/arm/virt.c | 1 + include/hw/acpi/acpi-defs.h

[PATCH 1/4] acpi: Add aml_generic_register

2020-02-12 Thread fangying1
From: Ying Fang The generic register descriptor describes the localtion of a fixed width register within any of the ACPI-defined address space. This is needed to declare the ACPI CPPC registers. Signed-off-by: Heyi Guo Signed-off-by: Ying Fang --- hw/acpi/aml-build.c | 22 +++

[PATCH 4/4] arm: Create the cpufreq device

2020-02-12 Thread fangying1
From: Ying Fang Signed-off-by: Heyi Guo Signed-off-by: Ying Fang --- default-configs/aarch64-softmmu.mak | 1 + hw/acpi/Kconfig | 4 hw/arm/virt.c | 13 + 3 files changed, 18 insertions(+) diff --git a/default-configs/aarch64-softmm