2bc292
From 1b8eeb1323fa21c7b26d0396fae5ae4a8cdb1ace Mon Sep 17 00:00:00 2001
2bc292
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
2bc292
Date: Tue, 11 Jan 2022 18:29:31 +0000
2bc292
Subject: [PATCH 1/3] x86: Add q35 RHEL 8.6.0 machine type
2bc292
2bc292
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
2bc292
RH-MergeRequest: 61: x86: Add rhel 8.6.0 & 9.0.0 machine types
2bc292
RH-Commit: [1/2] 189335cf0e4ad117e3e401f23aa07cddbbac50df (dagrh/c-9-s-qemu-kvm)
2bc292
RH-Bugzilla: 1945666
2bc292
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
2bc292
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
2bc292
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
2bc292
2bc292
Add the new 8.6.0 machine type;  note that while the -AV
2bc292
notation has gone in the product naming, just keep the smbios
2bc292
definitions the same for consistency.
2bc292
2bc292
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2bc292
---
2bc292
 hw/i386/pc_q35.c | 21 ++++++++++++++++++++-
2bc292
 1 file changed, 20 insertions(+), 1 deletion(-)
2bc292
2bc292
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
2bc292
index 3b748ddd7b..0c25305f15 100644
2bc292
--- a/hw/i386/pc_q35.c
2bc292
+++ b/hw/i386/pc_q35.c
2bc292
@@ -646,6 +646,24 @@ static void pc_q35_machine_rhel_options(MachineClass *m)
2bc292
     compat_props_add(m->compat_props, pc_rhel_compat, pc_rhel_compat_len);
2bc292
 }
2bc292
 
2bc292
+static void pc_q35_init_rhel860(MachineState *machine)
2bc292
+{
2bc292
+    pc_q35_init(machine);
2bc292
+}
2bc292
+
2bc292
+static void pc_q35_machine_rhel860_options(MachineClass *m)
2bc292
+{
2bc292
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
2bc292
+    pc_q35_machine_rhel_options(m);
2bc292
+    m->desc = "RHEL-8.6.0 PC (Q35 + ICH9, 2009)";
2bc292
+    pcmc->smbios_stream_product = "RHEL-AV";
2bc292
+    pcmc->smbios_stream_version = "8.6.0";
2bc292
+}
2bc292
+
2bc292
+DEFINE_PC_MACHINE(q35_rhel860, "pc-q35-rhel8.6.0", pc_q35_init_rhel860,
2bc292
+                  pc_q35_machine_rhel860_options);
2bc292
+
2bc292
+
2bc292
 static void pc_q35_init_rhel850(MachineState *machine)
2bc292
 {
2bc292
     pc_q35_init(machine);
2bc292
@@ -654,8 +672,9 @@ static void pc_q35_init_rhel850(MachineState *machine)
2bc292
 static void pc_q35_machine_rhel850_options(MachineClass *m)
2bc292
 {
2bc292
     PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
2bc292
-    pc_q35_machine_rhel_options(m);
2bc292
+    pc_q35_machine_rhel860_options(m);
2bc292
     m->desc = "RHEL-8.5.0 PC (Q35 + ICH9, 2009)";
2bc292
+    m->alias = NULL;
2bc292
     pcmc->smbios_stream_product = "RHEL-AV";
2bc292
     pcmc->smbios_stream_version = "8.5.0";
2bc292
     compat_props_add(m->compat_props, hw_compat_rhel_8_5,
2bc292
-- 
2bc292
2.27.0
2bc292