diff options
author | Gavin Shan | 2022-05-03 16:03:04 +0200 |
---|---|---|
committer | Peter Maydell | 2022-05-09 12:47:55 +0200 |
commit | ae9141d4a3265553503bf07d3574b40f84615a34 (patch) | |
tree | becab677abe9fe3f9d284c8549ad613b946ab9ee /hw/core/machine.c | |
parent | hw/arm/virt: Fix CPU's default NUMA node ID (diff) | |
download | qemu-ae9141d4a3265553503bf07d3574b40f84615a34.tar.gz qemu-ae9141d4a3265553503bf07d3574b40f84615a34.tar.xz qemu-ae9141d4a3265553503bf07d3574b40f84615a34.zip |
hw/acpi/aml-build: Use existing CPU topology to build PPTT table
When the PPTT table is built, the CPU topology is re-calculated, but
it's unecessary because the CPU topology has been populated in
virt_possible_cpu_arch_ids() on arm/virt machine.
This reworks build_pptt() to avoid by reusing the existing IDs in
ms->possible_cpus. Currently, the only user of build_pptt() is
arm/virt machine.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Tested-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Yanan Wang <wangyanan55@huawei.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20220503140304.855514-7-gshan@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions