]> git.ipfire.org Git - thirdparty/qemu.git/commit - include/hw/s390x/s390-virtio-ccw.h
s390x/cpu topology: add max_threads machine class attribute
authorPierre Morel <pmorel@linux.ibm.com>
Thu, 3 Nov 2022 17:01:41 +0000 (18:01 +0100)
committerThomas Huth <thuth@redhat.com>
Sun, 6 Nov 2022 11:38:57 +0000 (12:38 +0100)
commit6393b29966fce3c0e47746a9646ae439e7fd0728
tree1aa7d776bfe1568091f34de3eab37ede658b7f13
parent1fd396e32288bbf536483c74b68cb3ee86005a9f
s390x/cpu topology: add max_threads machine class attribute

The S390 CPU topology accepts the smp.threads argument while
in reality it does not effectively allow multthreading.

Let's keep this behavior for machines older than 7.2 and
refuse to use threads in newer machines until multithreading
is really exposed to the guest by the machine.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Message-Id: <20221103170150.20789-3-pmorel@linux.ibm.com>
[thuth: Small fixes to the commit description]
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-virtio-ccw.c
include/hw/s390x/s390-virtio-ccw.h