|
|
c7c90d |
From ac371ebbc83fd09970f259f77481956673c885cf Mon Sep 17 00:00:00 2001
|
|
|
c7c90d |
From: Suraj Jitindar Singh <sursingh@redhat.com>
|
|
|
c7c90d |
Date: Tue, 13 Mar 2018 05:21:37 +0100
|
|
|
c7c90d |
Subject: [PATCH 15/17] redhat: Define the pseries-rhel7.5-sxxm machine type
|
|
|
c7c90d |
|
|
|
c7c90d |
RH-Author: Suraj Jitindar Singh <sursingh@redhat.com>
|
|
|
c7c90d |
Message-id: <1520918499-27663-10-git-send-email-sursingh@redhat.com>
|
|
|
c7c90d |
Patchwork-id: 79250
|
|
|
c7c90d |
O-Subject: [RHEL7.5 qemu-kvm-rhev PATCH 09/11] redhat: Define the pseries-rhel7.5-sxxm machine type
|
|
|
c7c90d |
Bugzilla: 1554957
|
|
|
c7c90d |
RH-Acked-by: David Gibson <dgibson@redhat.com>
|
|
|
c7c90d |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
c7c90d |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
c7c90d |
|
|
|
c7c90d |
The sxxm (speculative execution exploit mitigation) machine type is a
|
|
|
c7c90d |
variant of the 7.5 machine type with workarounds for speculative
|
|
|
c7c90d |
execution vulnerabilities enabled by default.
|
|
|
c7c90d |
|
|
|
c7c90d |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1548919
|
|
|
c7c90d |
|
|
|
c7c90d |
Signed-off-by: Suraj Jitindar Singh <sursingh@redhat.com>
|
|
|
c7c90d |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
c7c90d |
---
|
|
|
c7c90d |
hw/ppc/spapr.c | 22 ++++++++++++++++++++++
|
|
|
c7c90d |
1 file changed, 22 insertions(+)
|
|
|
c7c90d |
|
|
|
c7c90d |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
|
|
|
c7c90d |
index a43e64c..9d63c00 100644
|
|
|
c7c90d |
--- a/hw/ppc/spapr.c
|
|
|
c7c90d |
+++ b/hw/ppc/spapr.c
|
|
|
c7c90d |
@@ -4131,6 +4131,28 @@ static void spapr_machine_rhel750_class_options(MachineClass *mc)
|
|
|
c7c90d |
|
|
|
c7c90d |
DEFINE_SPAPR_MACHINE(rhel750, "rhel7.5.0", true);
|
|
|
c7c90d |
|
|
|
c7c90d |
+/*
|
|
|
c7c90d |
+ * pseries-rhel7.5.0-sxxm
|
|
|
c7c90d |
+ *
|
|
|
c7c90d |
+ * pseries-rhel7.5.0 with speculative execution exploit mitigations enabled by default
|
|
|
c7c90d |
+ */
|
|
|
c7c90d |
+static void spapr_machine_rhel750sxxm_instance_options(MachineState *machine)
|
|
|
c7c90d |
+{
|
|
|
c7c90d |
+ spapr_machine_rhel750_instance_options(machine);
|
|
|
c7c90d |
+}
|
|
|
c7c90d |
+
|
|
|
c7c90d |
+static void spapr_machine_rhel750sxxm_class_options(MachineClass *mc)
|
|
|
c7c90d |
+{
|
|
|
c7c90d |
+ sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
|
|
|
c7c90d |
+
|
|
|
c7c90d |
+ spapr_machine_rhel750_class_options(mc);
|
|
|
c7c90d |
+ smc->default_caps.caps[SPAPR_CAP_CFPC] = SPAPR_CAP_WORKAROUND;
|
|
|
c7c90d |
+ smc->default_caps.caps[SPAPR_CAP_SBBC] = SPAPR_CAP_WORKAROUND;
|
|
|
c7c90d |
+ smc->default_caps.caps[SPAPR_CAP_IBS] = SPAPR_CAP_FIXED_CCD;
|
|
|
c7c90d |
+}
|
|
|
c7c90d |
+
|
|
|
c7c90d |
+DEFINE_SPAPR_MACHINE(rhel750sxxm, "rhel7.5.0-sxxm", false);
|
|
|
c7c90d |
+
|
|
|
c7c90d |
#if defined(CONFIG_RHV)
|
|
|
c7c90d |
|
|
|
c7c90d |
/*
|
|
|
c7c90d |
--
|
|
|
c7c90d |
1.8.3.1
|
|
|
c7c90d |
|