Blame SOURCES/kvm-Revert-redhat-Enable-FDC-device-for-upstream-machine.patch

0727d3
From 5bf8f1d69fea1225e927fbb3efe549a2a9d47d92 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 02/18] Revert "redhat: Enable FDC device for upstream machines
0727d3
 too"
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: [2/3] 4e3c945e3de9bb9d9a6d24115f0719168c9669fe (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 597cb6ca1da4a3eea77c1e4928f55203a1d5c70c
0727d3
Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
0727d3
Date:   Wed Mar 9 10:32:39 2022 +0000
0727d3
0727d3
    Revert "redhat: Enable FDC device for upstream machines too"
0727d3
0727d3
    This reverts commit c4d1aa8bf21fe98da94a9cff30b7c25bed12c17f.
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 597cb6ca1da4a3eea77c1e4928f55203a1d5c70c)
0727d3
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
0727d3
---
0727d3
 hw/block/fdc.c | 5 +----
0727d3
 1 file changed, 1 insertion(+), 4 deletions(-)
0727d3
0727d3
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
0727d3
index 63042ef030..97fa6de423 100644
0727d3
--- a/hw/block/fdc.c
0727d3
+++ b/hw/block/fdc.c
0727d3
@@ -2341,10 +2341,7 @@ void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl, Error **errp)
0727d3
 
0727d3
     /* Restricted for Red Hat Enterprise Linux: */
0727d3
     MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
0727d3
-    if (!strstr(mc->name, "-rhel7.") &&
0727d3
-        /* Exported two upstream machine types allows FDC too */
0727d3
-        strcmp(mc->name, "pc-i440fx-4.2") &&
0727d3
-        strcmp(mc->name, "pc-i440fx-2.11")) {
0727d3
+    if (!strstr(mc->name, "-rhel7.")) {
0727d3
         error_setg(errp, "Device %s is not supported with machine type %s",
0727d3
                    object_get_typename(OBJECT(dev)), mc->name);
0727d3
         return;
0727d3
-- 
0727d3
2.27.0
0727d3