ppc/pnv: use class attribute to limit SMT threads for different machines
authorNicholas Piggin <npiggin@gmail.com>
Fri, 24 May 2024 05:52:04 +0000 (15:52 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000 (09:21 +1000)
commitd76cb5a53b04d52db1500e83bd6bdfbfeca44e4d
treee40aaf6868337a6ecd1a7c98d08260342e735447
parent60d30cff8472c0bf05a40b0f55221fb4efb768e2
ppc/pnv: use class attribute to limit SMT threads for different machines

Use a class attribute to specify the number of SMT threads per core
permitted for different machines, 8 for powernv8 and 4 for powernv9/10.

Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv.c
include/hw/ppc/pnv.h