From: Zhao Liu <[email protected]> At present, in QEMU only arm needs PPTT table to build cpu topology.
Before QEMU's arm supports hybrid architectures, it's enough to limit the cpu topology of PPTT to smp type through the explicit smp interface (machine_topo_get_smp_threads()). Cc: Michael S. Tsirkin <[email protected]> Cc: Igor Mammedov <[email protected]> Cc: Ani Sinha <[email protected]> Signed-off-by: Zhao Liu <[email protected]> --- hw/acpi/aml-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index ea331a20d131..693bd8833d10 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -2044,7 +2044,7 @@ void build_pptt(GArray *table_data, BIOSLinker *linker, MachineState *ms, cluster_offset = socket_offset; } - if (ms->smp.threads == 1) { + if (machine_topo_get_smp_threads(ms) == 1) { build_processor_hierarchy_node(table_data, (1 << 1) | /* ACPI Processor ID valid */ (1 << 3), /* Node is a Leaf */ -- 2.34.1
