]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
machine: Make smp_parse generic enough for all arches
authorYanan Wang <wangyanan55@huawei.com>
Wed, 29 Sep 2021 02:58:12 +0000 (10:58 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 13:28:19 +0000 (15:28 +0200)
commite4a97a893bcd7511aba812969d1fa6fe42dc1931
tree1391c300f710f8d886a615499b8c9f1b630c6613
parent003f230e37d724ac52004d7f8270159da105780f
machine: Make smp_parse generic enough for all arches

Currently the only difference between smp_parse and pc_smp_parse
is the support of dies parameter and the related error reporting.
With some arch compat variables like "bool dies_supported", we can
make smp_parse generic enough for all arches and the PC specific
one can be removed.

Making smp_parse() generic enough can reduce code duplication and
ease the code maintenance, and also allows extending the topology
with more arch specific members (e.g., clusters) in the future.

Suggested-by: Andrew Jones <drjones@redhat.com>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210929025816.21076-13-wangyanan55@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
hw/i386/pc.c
include/hw/boards.h