[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear
From: |
Pierre Morel |
Subject: |
[PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear |
Date: |
Fri, 2 Sep 2022 09:55:22 +0200 |
S390x do not support multithreading in the guest.
Do not let admin falsely specify multithreading on QEMU
smp commandline.
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
---
hw/s390x/s390-virtio-ccw.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 70229b102b..b5ca154e2f 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -86,6 +86,9 @@ static void s390_init_cpus(MachineState *machine)
MachineClass *mc = MACHINE_GET_CLASS(machine);
int i;
+ /* Explicitely do not support threads */
+ assert(machine->smp.threads == 1);
+
/* initialize possible_cpus */
mc->possible_cpu_arch_ids(machine);
--
2.31.1
- Re: [PATCH v9 07/10] s390x/cpu_topology: CPU topology migration, (continued)
- [PATCH v9 04/10] hw/core: introducing drawer and books for s390x, Pierre Morel, 2022/09/02
- [PATCH v9 06/10] s390x/cpu_topology: resetting the Topology-Change-Report, Pierre Morel, 2022/09/02
- [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear,
Pierre Morel <=
- Re: [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear, Nico Boehr, 2022/09/05
- Re: [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear, Cédric Le Goater, 2022/09/27
- Re: [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear, Pierre Morel, 2022/09/28
- Re: [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear, Pierre Morel, 2022/09/28
- Re: [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear, Cédric Le Goater, 2022/09/28
Re: [PATCH v9 01/10] s390x/cpus: Make absence of multithreading clear, Daniel P . Berrangé, 2022/09/28
[PATCH v9 02/10] s390x/cpu topology: core_id sets s390x CPU topology, Pierre Morel, 2022/09/02