diff options
author | Yanan Wang <wangyanan55@huawei.com> | 2021-09-29 10:58:14 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-01 15:29:15 +0200 |
commit | 2b52619994ab48504c5fc0d32a1af24159405ce0 (patch) | |
tree | 9e60a62651c29e27cfef0fe5db0a5aab73ec6b68 /hw/i386/pc_q35.c | |
parent | 7687b2b3edc3f29ad58e8d6593d5c10dde406c34 (diff) | |
download | qemu-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 'hw/i386/pc_q35.c')
-rw-r--r-- | hw/i386/pc_q35.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 57ab07e..fcc6e4e 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -372,7 +372,7 @@ static void pc_q35_6_1_machine_options(MachineClass *m) m->alias = NULL; compat_props_add(m->compat_props, hw_compat_6_1, hw_compat_6_1_len); compat_props_add(m->compat_props, pc_compat_6_1, pc_compat_6_1_len); - m->smp_prefer_sockets = true; + m->smp_props.prefer_sockets = true; } DEFINE_Q35_MACHINE(v6_1, "pc-q35-6.1", NULL, |