Nicholas Piggin dc5e072188 spapr: TCG allow up to 8-thread SMT on POWER8 and newer CPUs
PPC TCG supports SMT CPU configurations for non-hypervisor state, so
permit POWER8-10 pseries machines to enable SMT.

This requires PIR and TIR be set, because that's how sibling thread
matching is done by TCG.

spapr's nested-HV capability does not currently coexist with SMT, so
that combination is prohibited (interestingly somewhat analogous to
LPAR-per-core mode on real hardware which also does not support KVM).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[ clg: Also test smp_threads when checking for POWER8 CPU and above ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2023-06-25 22:41:30 +02:00
..
2022-01-04 07:55:34 +01:00
2023-05-28 13:25:11 -03:00
2023-06-05 20:48:34 +02:00
2023-06-05 20:48:34 +02:00
2023-06-05 20:48:34 +02:00
2023-02-08 07:28:05 +01:00
2022-10-17 16:15:09 -03:00
2022-10-17 16:15:09 -03:00
2023-02-08 07:28:05 +01:00