Blame SOURCES/0021-x86-rhel-machine-types-Add-pc_rhel_8_5_compat.patch

495e37
From eae7d8dd3c3b9aa859a619933f52a4759a42bf66 Mon Sep 17 00:00:00 2001
495e37
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
495e37
Date: Tue, 23 Nov 2021 17:57:42 +0000
495e37
Subject: x86/rhel machine types: Add pc_rhel_8_5_compat
495e37
495e37
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
495e37
RH-MergeRequest: 76: 9.0/6.2.0-rc1 x86 machine type fixes
495e37
RH-Commit: [21/22] dd23060695bc0ad892bbfa51d93afe31f5d745c7
495e37
RH-Bugzilla: 2025468
495e37
RH-Acked-by: quintela1 <quintela@redhat.com>
495e37
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
495e37
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
495e37
495e37
Add pc_rhel_8_5_compat as the merge of pc_compat_6_1 and pc_compat_6_0
495e37
(since 8.5 was based on 6.0).
495e37
495e37
Note, x-keep-pci-slot-hpc flipped back and forward, leaving it out
495e37
looks like it leaves us with the original.
495e37
495e37
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
495e37
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
495e37
---
495e37
 hw/i386/pc.c         | 21 +++++++++++++++++++++
495e37
 include/hw/i386/pc.h |  3 +++
495e37
 2 files changed, 24 insertions(+)
495e37
495e37
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
495e37
index b6d2db8d04..4661473d2a 100644
495e37
--- a/hw/i386/pc.c
495e37
+++ b/hw/i386/pc.c
495e37
@@ -387,6 +387,27 @@ GlobalProperty pc_rhel_compat[] = {
495e37
 };
495e37
 const size_t pc_rhel_compat_len = G_N_ELEMENTS(pc_rhel_compat);
495e37
 
495e37
+GlobalProperty pc_rhel_8_5_compat[] = {
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
495e37
+    { "qemu64" "-" TYPE_X86_CPU, "family", "6" },
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
495e37
+    { "qemu64" "-" TYPE_X86_CPU, "model", "6" },
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
495e37
+    { "qemu64" "-" TYPE_X86_CPU, "stepping", "3" },
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
495e37
+    { TYPE_X86_CPU, "x-vendor-cpuid-only", "off" },
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
495e37
+    { "ICH9-LPC", ACPI_PM_PROP_ACPI_PCIHP_BRIDGE, "off" },
495e37
+
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_1 */
495e37
+    { TYPE_X86_CPU, "hv-version-id-build", "0x1bbc" },
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_1 */
495e37
+    { TYPE_X86_CPU, "hv-version-id-major", "0x0006" },
495e37
+    /* pc_rhel_8_5_compat from pc_compat_6_1 */
495e37
+    { TYPE_X86_CPU, "hv-version-id-minor", "0x0001" },
495e37
+};
495e37
+const size_t pc_rhel_8_5_compat_len = G_N_ELEMENTS(pc_rhel_8_5_compat);
495e37
+
495e37
 GlobalProperty pc_rhel_8_4_compat[] = {
495e37
     /* pc_rhel_8_4_compat from pc_compat_5_2 */
495e37
     { "ICH9-LPC", "x-smi-cpu-hotunplug", "off" },
495e37
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
495e37
index 9689a58b14..afb570ba14 100644
495e37
--- a/include/hw/i386/pc.h
495e37
+++ b/include/hw/i386/pc.h
495e37
@@ -283,6 +283,9 @@ extern const size_t pc_compat_1_4_len;
495e37
 extern GlobalProperty pc_rhel_compat[];
495e37
 extern const size_t pc_rhel_compat_len;
495e37
 
495e37
+extern GlobalProperty pc_rhel_8_5_compat[];
495e37
+extern const size_t pc_rhel_8_5_compat_len;
495e37
+
495e37
 extern GlobalProperty pc_rhel_8_4_compat[];
495e37
 extern const size_t pc_rhel_8_4_compat_len;
495e37
 
495e37
-- 
495e37
2.27.0
495e37