mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
1fd396e322
commit
6393b29966
2 changed files with 12 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue