Blame SOURCES/0020-redhat-Update-pseries-rhel8.5.0-machine-type.patch

ff9ada
From 82358c35f04f026820b3907069a6c19cd95b654d Mon Sep 17 00:00:00 2001
ff9ada
From: Laurent Vivier <lvivier@redhat.com>
ff9ada
Date: Mon, 15 Nov 2021 14:25:33 +0100
ff9ada
Subject: redhat: Update pseries-rhel8.5.0 machine type
ff9ada
ff9ada
RH-Author: Laurent Vivier <lvivier@redhat.com>
ff9ada
RH-MergeRequest: 66: redhat: Update pseries-rhel8.5.0 machine type
ff9ada
RH-Commit: [2/2] 36f7ad1ea56baaaecb139875ad0a90a6470196be
ff9ada
RH-Bugzilla: 2022608
ff9ada
RH-Acked-by: Eric Auger <eric.auger@redhat.com>
ff9ada
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
ff9ada
RH-Acked-by: Greg Kurz <gkurz@redhat.com>
ff9ada
`
ff9ada
We don't introduce a new machine type for rhel8.6.0 but we need
ff9ada
to keep compatibility with rhel8.5.0 machine type.
ff9ada
ff9ada
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
ff9ada
---
ff9ada
 hw/ppc/spapr.c | 4 ++++
ff9ada
 1 file changed, 4 insertions(+)
ff9ada
ff9ada
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
ff9ada
index cace86028d..2f27888d8a 100644
ff9ada
--- a/hw/ppc/spapr.c
ff9ada
+++ b/hw/ppc/spapr.c
ff9ada
@@ -5177,10 +5177,14 @@ static void spapr_machine_rhel_default_class_options(MachineClass *mc)
ff9ada
 
ff9ada
 static void spapr_machine_rhel850_class_options(MachineClass *mc)
ff9ada
 {
ff9ada
+    SpaprMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
ff9ada
+
ff9ada
     /* The default machine type must apply the RHEL specific defaults */
ff9ada
     spapr_machine_rhel_default_class_options(mc);
ff9ada
     compat_props_add(mc->compat_props, hw_compat_rhel_8_5,
ff9ada
                      hw_compat_rhel_8_5_len);
ff9ada
+    smc->pre_6_2_numa_affinity = true;
ff9ada
+    mc->smp_props.prefer_sockets = true;
ff9ada
 }
ff9ada
 
ff9ada
 DEFINE_SPAPR_MACHINE(rhel850, "rhel8.5.0", true);
ff9ada
-- 
ff9ada
2.27.0
ff9ada