0727d3
From e626dc16d130c724c400b99a93daad0a9abeae59 Mon Sep 17 00:00:00 2001
0727d3
From: Jon Maloy <jmaloy@redhat.com>
0727d3
Date: Tue, 22 Mar 2022 19:23:36 -0400
0727d3
Subject: [PATCH 01/18] Revert "redhat: Add hw_compat_4_2_extra and apply to
0727d3
 upstream machines"
0727d3
0727d3
RH-Author: Jon Maloy <jmaloy@redhat.com>
0727d3
RH-MergeRequest: 131: Revert "redhat: Add hw_compat_4_2_extra and apply to upstream machines"
0727d3
RH-Commit: [1/3] 47b7d9e5062f5e215d5ed1a3ecdc1a87ac3fa630 (jmaloy/qemu-kvm)
0727d3
RH-Bugzilla: 2062613
0727d3
RH-Acked-by: Peter Xu <peterx@redhat.com>
0727d3
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
0727d3
0727d3
BZ: https://bugzilla.redhat.com/2062613
0727d3
UPSTREAM: no
0727d3
BREW: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=44038000
0727d3
0727d3
commit dc2e9ec1e014950c7918e23a3e9b0096b34a4a92
0727d3
Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
0727d3
Date:   Wed Mar 9 10:31:53 2022 +0000
0727d3
0727d3
    Revert "redhat: Add hw_compat_4_2_extra and apply to upstream machines"
0727d3
0727d3
    This reverts commit 66882f9a3230246409f3918424aca26add5c034a.
0727d3
    We no longer need these compat machines it was added for.
0727d3
0727d3
    Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
0727d3
0727d3
(cherry picked from commit dc2e9ec1e014950c7918e23a3e9b0096b34a4a92)
0727d3
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
0727d3
---
0727d3
 hw/i386/pc.c         | 12 ------------
0727d3
 hw/i386/pc_piix.c    |  6 ------
0727d3
 include/hw/i386/pc.h |  3 ---
0727d3
 3 files changed, 21 deletions(-)
0727d3
0727d3
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
0727d3
index 4c08a1971c..357257349b 100644
0727d3
--- a/hw/i386/pc.c
0727d3
+++ b/hw/i386/pc.c
0727d3
@@ -670,18 +670,6 @@ GlobalProperty pc_rhel_7_0_compat[] = {
0727d3
 };
0727d3
 const size_t pc_rhel_7_0_compat_len = G_N_ELEMENTS(pc_rhel_7_0_compat);
0727d3
 
0727d3
-/*
0727d3
- * RHEL: These properties only apply to the RHEL exported machine types
0727d3
- * pc-4.2/2.11 for the purpose to have a limited upstream machines support
0727d3
- * which can be migrated to RHEL.  Let's avoid touching hw_compat_4_2 directly
0727d3
- * so that we can have some isolation against the upstream code.
0727d3
- */
0727d3
-GlobalProperty hw_compat_4_2_extra[] = {
0727d3
-    /* By default enlarge the default virtio-net-pci ROM to 512KB. */
0727d3
-    { "virtio-net-pci", "romsize", "0x80000" },
0727d3
-};
0727d3
-const size_t hw_compat_4_2_extra_len = G_N_ELEMENTS(hw_compat_4_2_extra);
0727d3
-
0727d3
 GSIState *pc_gsi_create(qemu_irq **irqs, bool pci_enabled)
0727d3
 {
0727d3
     GSIState *s;
0727d3
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
0727d3
index c30057c443..7b7076cbc7 100644
0727d3
--- a/hw/i386/pc_piix.c
0727d3
+++ b/hw/i386/pc_piix.c
0727d3
@@ -531,12 +531,6 @@ static void pc_i440fx_4_2_machine_options(MachineClass *m)
0727d3
      * supported by RHEL, even if exported.
0727d3
      */
0727d3
     m->deprecation_reason = "Not supported by RHEL";
0727d3
-    /*
0727d3
-     * RHEL: Specific compat properties to have limited support for upstream
0727d3
-     * machines exported.
0727d3
-     */
0727d3
-    compat_props_add(m->compat_props, hw_compat_4_2_extra,
0727d3
-                     hw_compat_4_2_extra_len);
0727d3
 }
0727d3
 
0727d3
 /* RHEL: Export pc-4.2 */
0727d3
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
0727d3
index 9e8bfb69f8..4a593acb50 100644
0727d3
--- a/include/hw/i386/pc.h
0727d3
+++ b/include/hw/i386/pc.h
0727d3
@@ -325,9 +325,6 @@ extern const size_t pc_rhel_7_1_compat_len;
0727d3
 extern GlobalProperty pc_rhel_7_0_compat[];
0727d3
 extern const size_t pc_rhel_7_0_compat_len;
0727d3
 
0727d3
-extern GlobalProperty hw_compat_4_2_extra[];
0727d3
-extern const size_t hw_compat_4_2_extra_len;
0727d3
-
0727d3
 /* Helper for setting model-id for CPU models that changed model-id
0727d3
  * depending on QEMU versions up to QEMU 2.4.
0727d3
  */
0727d3
-- 
0727d3
2.27.0
0727d3