[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 09/10] hw/acpi/virt-acpi-build: Support cluster level in PPTT
From: |
Yanan Wang |
Subject: |
[PATCH v4 09/10] hw/acpi/virt-acpi-build: Support cluster level in PPTT generation |
Date: |
Sun, 21 Nov 2021 20:25:01 +0800 |
Support cluster level in generation of ACPI Processor Properties
Topology Table (PPTT) for ARM virt machines.
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
---
hw/arm/virt-acpi-build.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index bef7056213..b34f0dbee0 100644
--- a/hw/arm/virt-acpi-build.c
+++ b/hw/arm/virt-acpi-build.c
@@ -839,6 +839,21 @@ build_pptt(GArray *table_data, BIOSLinker *linker,
VirtMachineState *vms)
0, socket, NULL, 0);
}
+ length = g_queue_get_length(list);
+ for (i = 0; i < length; i++) {
+ int cluster;
+
+ father_offset = GPOINTER_TO_UINT(g_queue_pop_head(list));
+ for (cluster = 0; cluster < ms->smp.clusters; cluster++) {
+ g_queue_push_tail(list,
+ GUINT_TO_POINTER(table_data->len - pptt_start));
+ build_processor_hierarchy_node(
+ table_data,
+ (0 << 0), /* not a physical package */
+ father_offset, cluster, NULL, 0);
+ }
+ }
+
length = g_queue_get_length(list);
for (i = 0; i < length; i++) {
int core;
--
2.19.1
- [PATCH v4 00/10] ARM virt: Introduce CPU clusters topology support, Yanan Wang, 2021/11/21
- [PATCH v4 04/10] hw/arm/virt: Support clusters on ARM virt machines, Yanan Wang, 2021/11/21
- [PATCH v4 07/10] hw/arm/virt-acpi-build: Make an ARM specific PPTT generator, Yanan Wang, 2021/11/21
- [PATCH v4 06/10] hw/acpi/aml-build: Improve scalability of PPTT generation, Yanan Wang, 2021/11/21
- [PATCH v4 05/10] hw/arm/virt: Support cluster level in DT cpu-map, Yanan Wang, 2021/11/21
- [PATCH v4 02/10] hw/core/machine: Introduce CPU cluster topology support, Yanan Wang, 2021/11/21
- [PATCH v4 01/10] qemu-options: Improve readability of SMP related Docs, Yanan Wang, 2021/11/21
- [PATCH v4 10/10] tests/acpi/bios-table-test: Update expected virt/PPTT file, Yanan Wang, 2021/11/21
- [PATCH v4 03/10] hw/core/machine: Wrap target specific parameters together, Yanan Wang, 2021/11/21
- [PATCH v4 08/10] tests/acpi/bios-tables-test: Allow changes to virt/PPTT file, Yanan Wang, 2021/11/21
- [PATCH v4 09/10] hw/acpi/virt-acpi-build: Support cluster level in PPTT generation,
Yanan Wang <=