diff options
author | Yanan Wang | 2021-09-29 04:58:14 +0200 |
---|---|---|
committer | Paolo Bonzini | 2021-10-01 15:29:15 +0200 |
commit | 2b52619994ab48504c5fc0d32a1af24159405ce0 (patch) | |
tree | 9e60a62651c29e27cfef0fe5db0a5aab73ec6b68 /hw/s390x | |
parent | machine: Remove smp_parse callback from MachineClass (diff) | |
download | qemu-2b52619994ab48504c5fc0d32a1af24159405ce0.tar.gz qemu-2b52619994ab48504c5fc0d32a1af24159405ce0.tar.xz qemu-2b52619994ab48504c5fc0d32a1af24159405ce0.zip |
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/s390x')
-rw-r--r-- | hw/s390x/s390-virtio-ccw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 5401c985cf..653587ea62 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -814,7 +814,7 @@ static void ccw_machine_6_1_class_options(MachineClass *mc) { ccw_machine_6_2_class_options(mc); compat_props_add(mc->compat_props, hw_compat_6_1, hw_compat_6_1_len); - mc->smp_prefer_sockets = true; + mc->smp_props.prefer_sockets = true; } DEFINE_CCW_MACHINE(6_1, "6.1", false); |