|
|
495e37 |
From 3d5024fb9c904a649d07f0def3a90b3d36611215 Mon Sep 17 00:00:00 2001
|
|
|
495e37 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
495e37 |
Date: Wed, 12 Jan 2022 13:21:57 +0000
|
|
|
495e37 |
Subject: [PATCH 2/3] x86: Add q35 RHEL 9.0.0 machine type
|
|
|
495e37 |
|
|
|
495e37 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
495e37 |
RH-MergeRequest: 61: x86: Add rhel 8.6.0 & 9.0.0 machine types
|
|
|
495e37 |
RH-Commit: [2/2] 743378502459b978efd632271f97ddb824422203 (dagrh/c-9-s-qemu-kvm)
|
|
|
495e37 |
RH-Bugzilla: 1945666
|
|
|
495e37 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
495e37 |
|
|
|
495e37 |
Add a rhel-9.0.0 q35 machine type; it's currently identical to 8.6.0;
|
|
|
495e37 |
but having a separate machine type will make life easier in the future
|
|
|
495e37 |
when the 8.x types go away.
|
|
|
495e37 |
|
|
|
495e37 |
Note: The smbios stream product name has now changed to 'RHEL'
|
|
|
495e37 |
|
|
|
495e37 |
bz: https://bugzilla.redhat.com/show_bug.cgi?id=1945666
|
|
|
495e37 |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
495e37 |
---
|
|
|
495e37 |
hw/i386/pc_q35.c | 21 +++++++++++++++++++--
|
|
|
495e37 |
1 file changed, 19 insertions(+), 2 deletions(-)
|
|
|
495e37 |
|
|
|
495e37 |
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
|
|
495e37 |
index 0c25305f15..bf9ad32f0e 100644
|
|
|
495e37 |
--- a/hw/i386/pc_q35.c
|
|
|
495e37 |
+++ b/hw/i386/pc_q35.c
|
|
|
495e37 |
@@ -646,6 +646,23 @@ static void pc_q35_machine_rhel_options(MachineClass *m)
|
|
|
495e37 |
compat_props_add(m->compat_props, pc_rhel_compat, pc_rhel_compat_len);
|
|
|
495e37 |
}
|
|
|
495e37 |
|
|
|
495e37 |
+static void pc_q35_init_rhel900(MachineState *machine)
|
|
|
495e37 |
+{
|
|
|
495e37 |
+ pc_q35_init(machine);
|
|
|
495e37 |
+}
|
|
|
495e37 |
+
|
|
|
495e37 |
+static void pc_q35_machine_rhel900_options(MachineClass *m)
|
|
|
495e37 |
+{
|
|
|
495e37 |
+ PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
495e37 |
+ pc_q35_machine_rhel_options(m);
|
|
|
495e37 |
+ m->desc = "RHEL-9.0.0 PC (Q35 + ICH9, 2009)";
|
|
|
495e37 |
+ pcmc->smbios_stream_product = "RHEL";
|
|
|
495e37 |
+ pcmc->smbios_stream_version = "9.0.0";
|
|
|
495e37 |
+}
|
|
|
495e37 |
+
|
|
|
495e37 |
+DEFINE_PC_MACHINE(q35_rhel900, "pc-q35-rhel9.0.0", pc_q35_init_rhel900,
|
|
|
495e37 |
+ pc_q35_machine_rhel900_options);
|
|
|
495e37 |
+
|
|
|
495e37 |
static void pc_q35_init_rhel860(MachineState *machine)
|
|
|
495e37 |
{
|
|
|
495e37 |
pc_q35_init(machine);
|
|
|
495e37 |
@@ -654,8 +671,9 @@ static void pc_q35_init_rhel860(MachineState *machine)
|
|
|
495e37 |
static void pc_q35_machine_rhel860_options(MachineClass *m)
|
|
|
495e37 |
{
|
|
|
495e37 |
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
495e37 |
- pc_q35_machine_rhel_options(m);
|
|
|
495e37 |
+ pc_q35_machine_rhel900_options(m);
|
|
|
495e37 |
m->desc = "RHEL-8.6.0 PC (Q35 + ICH9, 2009)";
|
|
|
495e37 |
+ m->alias = NULL;
|
|
|
495e37 |
pcmc->smbios_stream_product = "RHEL-AV";
|
|
|
495e37 |
pcmc->smbios_stream_version = "8.6.0";
|
|
|
495e37 |
}
|
|
|
495e37 |
@@ -674,7 +692,6 @@ static void pc_q35_machine_rhel850_options(MachineClass *m)
|
|
|
495e37 |
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
|
|
495e37 |
pc_q35_machine_rhel860_options(m);
|
|
|
495e37 |
m->desc = "RHEL-8.5.0 PC (Q35 + ICH9, 2009)";
|
|
|
495e37 |
- m->alias = NULL;
|
|
|
495e37 |
pcmc->smbios_stream_product = "RHEL-AV";
|
|
|
495e37 |
pcmc->smbios_stream_version = "8.5.0";
|
|
|
495e37 |
compat_props_add(m->compat_props, hw_compat_rhel_8_5,
|
|
|
495e37 |
--
|
|
|
495e37 |
2.27.0
|
|
|
495e37 |
|