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

28f2e1
From 7ad8814e583dcc7dc23e3e8398570243b8f176a1 Mon Sep 17 00:00:00 2001
28f2e1
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
28f2e1
Date: Tue, 23 Nov 2021 17:57:42 +0000
28f2e1
Subject: x86/rhel machine types: Add pc_rhel_8_5_compat
28f2e1
28f2e1
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
28f2e1
RH-MergeRequest: 77: 8.6/6.2 mt fixes
28f2e1
RH-Commit: [22/23] 8bf555c5d78f344b97ffd5c888c7a7bed592d9d0
28f2e1
RH-Bugzilla: 2026443
28f2e1
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
28f2e1
28f2e1
Add pc_rhel_8_5_compat as the merge of pc_compat_6_1 and pc_compat_6_0
28f2e1
(since 8.5 was based on 6.0).
28f2e1
28f2e1
Note, x-keep-pci-slot-hpc flipped back and forward, leaving it out
28f2e1
looks like it leaves us with the original.
28f2e1
28f2e1
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
28f2e1
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
28f2e1
---
28f2e1
 hw/i386/pc.c         | 21 +++++++++++++++++++++
28f2e1
 include/hw/i386/pc.h |  3 +++
28f2e1
 2 files changed, 24 insertions(+)
28f2e1
28f2e1
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
28f2e1
index e8109954ca..4c08a1971c 100644
28f2e1
--- a/hw/i386/pc.c
28f2e1
+++ b/hw/i386/pc.c
28f2e1
@@ -387,6 +387,27 @@ GlobalProperty pc_rhel_compat[] = {
28f2e1
 };
28f2e1
 const size_t pc_rhel_compat_len = G_N_ELEMENTS(pc_rhel_compat);
28f2e1
 
28f2e1
+GlobalProperty pc_rhel_8_5_compat[] = {
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
28f2e1
+    { "qemu64" "-" TYPE_X86_CPU, "family", "6" },
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
28f2e1
+    { "qemu64" "-" TYPE_X86_CPU, "model", "6" },
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
28f2e1
+    { "qemu64" "-" TYPE_X86_CPU, "stepping", "3" },
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
28f2e1
+    { TYPE_X86_CPU, "x-vendor-cpuid-only", "off" },
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_0 */
28f2e1
+    { "ICH9-LPC", ACPI_PM_PROP_ACPI_PCIHP_BRIDGE, "off" },
28f2e1
+
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_1 */
28f2e1
+    { TYPE_X86_CPU, "hv-version-id-build", "0x1bbc" },
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_1 */
28f2e1
+    { TYPE_X86_CPU, "hv-version-id-major", "0x0006" },
28f2e1
+    /* pc_rhel_8_5_compat from pc_compat_6_1 */
28f2e1
+    { TYPE_X86_CPU, "hv-version-id-minor", "0x0001" },
28f2e1
+};
28f2e1
+const size_t pc_rhel_8_5_compat_len = G_N_ELEMENTS(pc_rhel_8_5_compat);
28f2e1
+
28f2e1
 GlobalProperty pc_rhel_8_4_compat[] = {
28f2e1
     /* pc_rhel_8_4_compat from pc_compat_5_2 */
28f2e1
     { "ICH9-LPC", "x-smi-cpu-hotunplug", "off" },
28f2e1
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
28f2e1
index d0544ee119..9e8bfb69f8 100644
28f2e1
--- a/include/hw/i386/pc.h
28f2e1
+++ b/include/hw/i386/pc.h
28f2e1
@@ -286,6 +286,9 @@ extern const size_t pc_compat_1_4_len;
28f2e1
 extern GlobalProperty pc_rhel_compat[];
28f2e1
 extern const size_t pc_rhel_compat_len;
28f2e1
 
28f2e1
+extern GlobalProperty pc_rhel_8_5_compat[];
28f2e1
+extern const size_t pc_rhel_8_5_compat_len;
28f2e1
+
28f2e1
 extern GlobalProperty pc_rhel_8_4_compat[];
28f2e1
 extern const size_t pc_rhel_8_4_compat_len;
28f2e1
 
28f2e1
-- 
28f2e1
2.27.0
28f2e1