aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPierre Morel <pmorel@linux.ibm.com>2022-11-03 18:01:41 +0100
committerThomas Huth <thuth@redhat.com>2022-11-06 12:38:57 +0100
commit6393b29966fce3c0e47746a9646ae439e7fd0728 (patch)
tree1aa7d776bfe1568091f34de3eab37ede658b7f13 /include/hw
parent1fd396e32288bbf536483c74b68cb3ee86005a9f (diff)
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>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/s390x/s390-virtio-ccw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/s390x/s390-virtio-ccw.h b/include/hw/s390x/s390-virtio-ccw.h
index 8a0090a071..4f8a39abda 100644
--- a/include/hw/s390x/s390-virtio-ccw.h
+++ b/include/hw/s390x/s390-virtio-ccw.h
@@ -40,6 +40,7 @@ struct S390CcwMachineClass {
bool cpu_model_allowed;
bool css_migration_enabled;
bool hpage_1m_allowed;
+ int max_threads;
};
/* runtime-instrumentation allowed by the machine */