aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorYanan Wang <wangyanan55@huawei.com>2021-09-29 10:58:12 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-10-01 15:28:19 +0200
commite4a97a893bcd7511aba812969d1fa6fe42dc1931 (patch)
tree1391c300f710f8d886a615499b8c9f1b630c6613 /qemu-io.c
parent003f230e37d724ac52004d7f8270159da105780f (diff)
downloadqemu-e4a97a893bcd7511aba812969d1fa6fe42dc1931.zip
qemu-e4a97a893bcd7511aba812969d1fa6fe42dc1931.tar.gz
qemu-e4a97a893bcd7511aba812969d1fa6fe42dc1931.tar.bz2
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>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions