mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
60d30cff84
commit
d76cb5a53b
2 changed files with 10 additions and 3 deletions
|
@ -76,6 +76,7 @@ struct PnvMachineClass {
|
|||
/*< public >*/
|
||||
const char *compat;
|
||||
int compat_size;
|
||||
int max_smt_threads;
|
||||
|
||||
void (*dt_power_mgt)(PnvMachineState *pnv, void *fdt);
|
||||
void (*i2c_init)(PnvMachineState *pnv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue