aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYanan Wang <wangyanan55@huawei.com>2021-09-29 10:58:14 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-10-01 15:29:15 +0200
commit2b52619994ab48504c5fc0d32a1af24159405ce0 (patch)
tree9e60a62651c29e27cfef0fe5db0a5aab73ec6b68 /include
parent7687b2b3edc3f29ad58e8d6593d5c10dde406c34 (diff)
downloadqemu-2b52619994ab48504c5fc0d32a1af24159405ce0.zip
qemu-2b52619994ab48504c5fc0d32a1af24159405ce0.tar.gz
qemu-2b52619994ab48504c5fc0d32a1af24159405ce0.tar.bz2
machine: Move smp_prefer_sockets to struct SMPCompatProps
Now we have a common structure SMPCompatProps used to store information about SMP compatibility stuff, so we can also move smp_prefer_sockets there for cleaner code. No functional change intended. Signed-off-by: Yanan Wang <wangyanan55@huawei.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20210929025816.21076-15-wangyanan55@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/boards.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index fa284e0..5adbcbb 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -110,9 +110,11 @@ typedef struct {
/**
* SMPCompatProps:
+ * @prefer_sockets - whether sockets are preferred over cores in smp parsing
* @dies_supported - whether dies are supported by the machine
*/
typedef struct {
+ bool prefer_sockets;
bool dies_supported;
} SMPCompatProps;
@@ -250,7 +252,6 @@ struct MachineClass {
bool nvdimm_supported;
bool numa_mem_supported;
bool auto_enable_numa;
- bool smp_prefer_sockets;
SMPCompatProps smp_props;
const char *default_ram_id;