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

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