60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
|
From 16bd67e1b3706f2e20bda52a5f8ad42742a51f55 Mon Sep 17 00:00:00 2001
|
||
|
From: Sebastian Ott <sebott@redhat.com>
|
||
|
Date: Thu, 22 Aug 2024 17:21:52 +0200
|
||
|
Subject: [PATCH 4/9] x86: create pc-q35 machine type for rhel10
|
||
|
|
||
|
RH-Author: Sebastian Ott <sebott@redhat.com>
|
||
|
RH-MergeRequest: 270: RHEL10 machine types
|
||
|
RH-Jira: RHEL-29002 RHEL-29003 RHEL-35587 RHEL-38411 RHEL-45141 RHEL-52318 RHEL-52320
|
||
|
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
||
|
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
||
|
RH-Acked-by: Eric Auger <eric.auger@redhat.com>
|
||
|
RH-Commit: [4/7] 86639ee63c884fb97e1f6bc7e24b2773ac2b4a7a (seott1/cos-qemu-kvm)
|
||
|
|
||
|
Create a new machine type pc-q35-rhel10.0.0 with alias q35.
|
||
|
|
||
|
Signed-off-by: Sebastian Ott <sebott@redhat.com>
|
||
|
---
|
||
|
hw/i386/pc_q35.c | 14 ++++++++++++--
|
||
|
1 file changed, 12 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
|
||
|
index 6ee032e91e..4ad4ad79a4 100644
|
||
|
--- a/hw/i386/pc_q35.c
|
||
|
+++ b/hw/i386/pc_q35.c
|
||
|
@@ -672,11 +672,22 @@ DEFINE_Q35_MACHINE(2, 4);
|
||
|
|
||
|
/* Red Hat Enterprise Linux machine types */
|
||
|
|
||
|
-static void pc_q35_rhel_machine_9_6_0_options(MachineClass *m)
|
||
|
+static void pc_q35_rhel_machine_10_0_0_options(MachineClass *m)
|
||
|
{
|
||
|
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
||
|
pc_q35_machine_options(m);
|
||
|
+ m->desc = "RHEL-10.0.0 PC (Q35 + ICH9, 2009)";
|
||
|
+ pcmc->smbios_stream_product = "RHEL";
|
||
|
+ pcmc->smbios_stream_version = "10.0.0";
|
||
|
+}
|
||
|
+DEFINE_Q35_MACHINE_BUGFIX(10, 0, 0);
|
||
|
+
|
||
|
+static void pc_q35_rhel_machine_9_6_0_options(MachineClass *m)
|
||
|
+{
|
||
|
+ PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
||
|
+ pc_q35_rhel_machine_10_0_0_options(m);
|
||
|
m->desc = "RHEL-9.6.0 PC (Q35 + ICH9, 2009)";
|
||
|
+ m->alias = NULL;
|
||
|
pcmc->smbios_stream_product = "RHEL";
|
||
|
pcmc->smbios_stream_version = "9.6.0";
|
||
|
}
|
||
|
@@ -688,7 +699,6 @@ static void pc_q35_rhel_machine_9_4_0_options(MachineClass *m)
|
||
|
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
|
||
|
pc_q35_rhel_machine_9_6_0_options(m);
|
||
|
m->desc = "RHEL-9.4.0 PC (Q35 + ICH9, 2009)";
|
||
|
- m->alias = NULL;
|
||
|
pcmc->smbios_stream_product = "RHEL";
|
||
|
pcmc->smbios_stream_version = "9.4.0";
|
||
|
|
||
|
--
|
||
|
2.39.3
|
||
|
|