ff9ada
From 31530bf621dc28689142ffa83d025ec4a4f110c1 Mon Sep 17 00:00:00 2001
ff9ada
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ff9ada
Date: Tue, 11 Jan 2022 18:29:31 +0000
ff9ada
Subject: [PATCH 2/2] x86: Add q35 RHEL 8.6.0 machine type
ff9ada
MIME-Version: 1.0
ff9ada
Content-Type: text/plain; charset=UTF-8
ff9ada
Content-Transfer-Encoding: 8bit
ff9ada
ff9ada
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ff9ada
RH-MergeRequest: 99: x86: Add q35 RHEL 8.6.0 machine type
ff9ada
RH-Commit: [1/1] a694724b6fa972e312bb76b5569bc979d6c596ef
ff9ada
RH-Bugzilla: 2031035
ff9ada
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
ff9ada
RH-Acked-by: Daniel P. Berrangé <berrange@redhat.com>
ff9ada
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
ff9ada
ff9ada
Add the new 8.6.0 machine type;  note that while the -AV
ff9ada
notation has gone in the product naming, just keep the smbios
ff9ada
definitions the same for consistency.
ff9ada
ff9ada
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ff9ada
---
ff9ada
 hw/i386/pc_q35.c | 21 ++++++++++++++++++++-
ff9ada
 1 file changed, 20 insertions(+), 1 deletion(-)
ff9ada
ff9ada
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
ff9ada
index f6e77bca0e..5559261d9e 100644
ff9ada
--- a/hw/i386/pc_q35.c
ff9ada
+++ b/hw/i386/pc_q35.c
ff9ada
@@ -646,6 +646,24 @@ static void pc_q35_machine_rhel_options(MachineClass *m)
ff9ada
     compat_props_add(m->compat_props, pc_rhel_compat, pc_rhel_compat_len);
ff9ada
 }
ff9ada
 
ff9ada
+static void pc_q35_init_rhel860(MachineState *machine)
ff9ada
+{
ff9ada
+    pc_q35_init(machine);
ff9ada
+}
ff9ada
+
ff9ada
+static void pc_q35_machine_rhel860_options(MachineClass *m)
ff9ada
+{
ff9ada
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
ff9ada
+    pc_q35_machine_rhel_options(m);
ff9ada
+    m->desc = "RHEL-8.6.0 PC (Q35 + ICH9, 2009)";
ff9ada
+    pcmc->smbios_stream_product = "RHEL-AV";
ff9ada
+    pcmc->smbios_stream_version = "8.6.0";
ff9ada
+}
ff9ada
+
ff9ada
+DEFINE_PC_MACHINE(q35_rhel860, "pc-q35-rhel8.6.0", pc_q35_init_rhel860,
ff9ada
+                  pc_q35_machine_rhel860_options);
ff9ada
+
ff9ada
+
ff9ada
 static void pc_q35_init_rhel850(MachineState *machine)
ff9ada
 {
ff9ada
     pc_q35_init(machine);
ff9ada
@@ -654,8 +672,9 @@ static void pc_q35_init_rhel850(MachineState *machine)
ff9ada
 static void pc_q35_machine_rhel850_options(MachineClass *m)
ff9ada
 {
ff9ada
     PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
ff9ada
-    pc_q35_machine_rhel_options(m);
ff9ada
+    pc_q35_machine_rhel860_options(m);
ff9ada
     m->desc = "RHEL-8.5.0 PC (Q35 + ICH9, 2009)";
ff9ada
+    m->alias = NULL;
ff9ada
     pcmc->smbios_stream_product = "RHEL-AV";
ff9ada
     pcmc->smbios_stream_version = "8.5.0";
ff9ada
     compat_props_add(m->compat_props, hw_compat_rhel_8_5,
ff9ada
-- 
ff9ada
2.27.0
ff9ada