cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/0022-x86-rhel-machine-types-Wire-compat-into-q35-and-i440.patch

b697b4
From 6762f5646943c759ece5972f08eb88364cf0a8ad Mon Sep 17 00:00:00 2001
b697b4
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
b697b4
Date: Tue, 23 Nov 2021 18:07:49 +0000
b697b4
Subject: x86/rhel machine types: Wire compat into q35 and i440fx
b697b4
b697b4
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
b697b4
RH-MergeRequest: 76: 9.0/6.2.0-rc1 x86 machine type fixes
b697b4
RH-Commit: [22/22] e2767df0d920773057cb52d346e0106a76cb0a28
b697b4
RH-Bugzilla: 2025468
b697b4
RH-Acked-by: quintela1 <quintela@redhat.com>
b697b4
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
b697b4
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
b697b4
Wire the pc_rhel_8_5 compat data into both piix and q35
b697b4
to keep the existing machine types compatible.
b697b4
b697b4
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
b697b4
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
b697b4
---
b697b4
 hw/i386/pc_piix.c | 4 ++++
b697b4
 hw/i386/pc_q35.c  | 4 ++++
b697b4
 2 files changed, 8 insertions(+)
b697b4
b697b4
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
b697b4
index dabc6c1933..183b5d5464 100644
b697b4
--- a/hw/i386/pc_piix.c
b697b4
+++ b/hw/i386/pc_piix.c
b697b4
@@ -993,6 +993,10 @@ static void pc_machine_rhel760_options(MachineClass *m)
b697b4
     pcmc->kvmclock_create_always = false;
b697b4
     /* From pc_i440fx_5_1_machine_options() */
b697b4
     pcmc->pci_root_uid = 1;
b697b4
+    compat_props_add(m->compat_props, hw_compat_rhel_8_5,
b697b4
+                     hw_compat_rhel_8_5_len);
b697b4
+    compat_props_add(m->compat_props, pc_rhel_8_5_compat,
b697b4
+                     pc_rhel_8_5_compat_len);
b697b4
     compat_props_add(m->compat_props, hw_compat_rhel_8_4,
b697b4
                      hw_compat_rhel_8_4_len);
b697b4
     compat_props_add(m->compat_props, pc_rhel_8_4_compat,
b697b4
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
b697b4
index 04c911da18..0e7e885e78 100644
b697b4
--- a/hw/i386/pc_q35.c
b697b4
+++ b/hw/i386/pc_q35.c
b697b4
@@ -658,6 +658,10 @@ static void pc_q35_machine_rhel850_options(MachineClass *m)
b697b4
     m->desc = "RHEL-8.5.0 PC (Q35 + ICH9, 2009)";
b697b4
     pcmc->smbios_stream_product = "RHEL-AV";
b697b4
     pcmc->smbios_stream_version = "8.5.0";
b697b4
+    compat_props_add(m->compat_props, hw_compat_rhel_8_5,
b697b4
+                     hw_compat_rhel_8_5_len);
b697b4
+    compat_props_add(m->compat_props, pc_rhel_8_5_compat,
b697b4
+                     pc_rhel_8_5_compat_len);
b697b4
 }
b697b4
 
b697b4
 DEFINE_PC_MACHINE(q35_rhel850, "pc-q35-rhel8.5.0", pc_q35_init_rhel850,
b697b4
-- 
b697b4
2.27.0
b697b4