ppc/spapr: fix default cpu for pre-9.0 machines.
PATCH v2 1/1 ppc/spapr: fix default cpu for pre-9.0 machines.
When POWER10 CPU was made as default, we missed keeping POWER9 as default for older pseries releases (pre-9.0) at that time. This caused breakge in default cpu evaluation for older pseries machines and hence this fix.
---
v2: addressed review comments from Philippe, Daniel
--- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+)
hw/ppc/spapr.c +1 -0
@@ -4781,6 +4781,7 @@ static void spapr_machine_8_2_class_options(MachineClass *mc) {spapr_machine_9_0_class_options (mc);compat_props_add (mc->compat_props, hw_compat_8_2, hw_compat_8_2_len); + mc->default_cpu_type =POWERPC_CPU_TYPE_NAME ("power9_v2.2" ); }DEFINE_SPAPR_MACHINE (8 ,2 );
Signature · 1 line
2.43.5
Quoted 5 lines · Harsh Prateek Bora
When POWER10 CPU was made as default, we missed keeping POWER9 as default for older pseries releases (pre-9.0) at that time. This caused breakge in default cpu evaluation for older pseries machines and hence this fix.
Quoted 8 lines
Fixes 51113013f3 ("ppc/spapr: change pseries machine default to POWER10 CPU")Signed-off-by Harsh Prateek Bora <[email protected]>---
v2: addressed review comments from Philippe, Daniel--- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 19 lines · Harsh Prateek Bora
When POWER10 CPU was made as default, we missed keeping POWER9 as default for older pseries releases (pre-9.0) at that time. This caused breakge in default cpu evaluation for older pseries machines and hence this fix.
Fixes 51113013f3 ("ppc/spapr: change pseries machine default to POWER10 CPU")Signed-off-by Harsh Prateek Bora <[email protected]>---
v2: addressed review comments from Philippe, Daniel--- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+)hw/ppc/spapr.c +0
-0
hw/ppc/spapr.c static void spapr_machine_8_2_class_options(MachineClass *mc) · line 4784
Quoted 4 lines
hw/ppc/spapr.c +1
-0@@ -4781,6 +4781,7 @@ static void spapr_machine_8_2_class_options(MachineClass *mc) {spapr_machine_9_0_class_options (mc);compat_props_add (mc->compat_props, hw_compat_8_2, hw_compat_8_2_len); + mc->default_cpu_type =POWERPC_CPU_TYPE_NAME ("power9_v2.2" );
Ah, this makes more sense!
Quoted 3 lines
hw/ppc/spapr.c +0
-0}DEFINE_SPAPR_MACHINE (8 ,2 );