ed5979
From f33ca8aed4744238230f1f2cc47df77aa4c9e0ac Mon Sep 17 00:00:00 2001
ed5979
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ed5979
Date: Thu, 17 Nov 2022 12:36:30 +0000
ed5979
Subject: x86: rhel 9.2.0 machine type
ed5979
ed5979
Add a 9.2.0 x86 machine type, and fix up the compatibility
ed5979
for 9.0.0 and older.
ed5979
ed5979
pc_compat_7_1 and pc_compat_7_0 are both empty upstream so there's
ed5979
nothing to do there.
ed5979
ed5979
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ed5979
---
ed5979
 hw/i386/pc_piix.c |  1 +
ed5979
 hw/i386/pc_q35.c  | 21 ++++++++++++++++++++-
ed5979
 2 files changed, 21 insertions(+), 1 deletion(-)
ed5979
ed5979
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
ed5979
index 173a1fd10b..fc06877344 100644
ed5979
--- a/hw/i386/pc_piix.c
ed5979
+++ b/hw/i386/pc_piix.c
ed5979
@@ -944,6 +944,7 @@ static void pc_machine_rhel760_options(MachineClass *m)
ed5979
     /* From pc_i440fx_5_1_machine_options() */
ed5979
     pcmc->pci_root_uid = 1;
ed5979
     pcmc->legacy_no_rng_seed = true;
ed5979
+    pcmc->enforce_amd_1tb_hole = false;
ed5979
     compat_props_add(m->compat_props, hw_compat_rhel_9_1,
ed5979
                      hw_compat_rhel_9_1_len);
ed5979
     compat_props_add(m->compat_props, hw_compat_rhel_9_0,
ed5979
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
ed5979
index 97c3630021..52cfe3bf45 100644
ed5979
--- a/hw/i386/pc_q35.c
ed5979
+++ b/hw/i386/pc_q35.c
ed5979
@@ -692,6 +692,23 @@ static void pc_q35_machine_rhel_options(MachineClass *m)
ed5979
     compat_props_add(m->compat_props, pc_rhel_compat, pc_rhel_compat_len);
ed5979
 }
ed5979
 
ed5979
+static void pc_q35_init_rhel920(MachineState *machine)
ed5979
+{
ed5979
+    pc_q35_init(machine);
ed5979
+}
ed5979
+
ed5979
+static void pc_q35_machine_rhel920_options(MachineClass *m)
ed5979
+{
ed5979
+    PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
ed5979
+    pc_q35_machine_rhel_options(m);
ed5979
+    m->desc = "RHEL-9.2.0 PC (Q35 + ICH9, 2009)";
ed5979
+    pcmc->smbios_stream_product = "RHEL";
ed5979
+    pcmc->smbios_stream_version = "9.2.0";
ed5979
+}
ed5979
+
ed5979
+DEFINE_PC_MACHINE(q35_rhel920, "pc-q35-rhel9.2.0", pc_q35_init_rhel920,
ed5979
+                  pc_q35_machine_rhel920_options);
ed5979
+
ed5979
 static void pc_q35_init_rhel900(MachineState *machine)
ed5979
 {
ed5979
     pc_q35_init(machine);
ed5979
@@ -700,11 +717,13 @@ static void pc_q35_init_rhel900(MachineState *machine)
ed5979
 static void pc_q35_machine_rhel900_options(MachineClass *m)
ed5979
 {
ed5979
     PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
ed5979
-    pc_q35_machine_rhel_options(m);
ed5979
+    pc_q35_machine_rhel920_options(m);
ed5979
     m->desc = "RHEL-9.0.0 PC (Q35 + ICH9, 2009)";
ed5979
+    m->alias = NULL;
ed5979
     pcmc->smbios_stream_product = "RHEL";
ed5979
     pcmc->smbios_stream_version = "9.0.0";
ed5979
     pcmc->legacy_no_rng_seed = true;
ed5979
+    pcmc->enforce_amd_1tb_hole = false;
ed5979
     compat_props_add(m->compat_props, hw_compat_rhel_9_1,
ed5979
                      hw_compat_rhel_9_1_len);
ed5979
     compat_props_add(m->compat_props, hw_compat_rhel_9_0,
ed5979
-- 
ed5979
2.31.1
ed5979