|
|
60061b |
From 597cb6ca1da4a3eea77c1e4928f55203a1d5c70c Mon Sep 17 00:00:00 2001
|
|
|
60061b |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
60061b |
Date: Wed, 9 Mar 2022 10:32:39 +0000
|
|
|
60061b |
Subject: [PATCH 2/6] Revert "redhat: Enable FDC device for upstream machines
|
|
|
60061b |
too"
|
|
|
60061b |
|
|
|
60061b |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
60061b |
RH-MergeRequest: 121: x86: Remove upstream compat machines
|
|
|
60061b |
RH-Commit: [2/3] 1d4d284babe8fe5b25ccb4ca85daf6f8c6cedcc2
|
|
|
60061b |
RH-Bugzilla: 2061856
|
|
|
60061b |
RH-Acked-by: Stephen Tweedie <None>
|
|
|
60061b |
RH-Acked-by: quintela1 <quintela@redhat.com>
|
|
|
60061b |
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
|
60061b |
|
|
|
60061b |
This reverts commit c4d1aa8bf21fe98da94a9cff30b7c25bed12c17f.
|
|
|
60061b |
We no longer need these compat machines it was added for.
|
|
|
60061b |
|
|
|
60061b |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
60061b |
---
|
|
|
60061b |
hw/block/fdc.c | 5 +----
|
|
|
60061b |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
60061b |
|
|
|
60061b |
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
|
|
|
60061b |
index 63042ef030..97fa6de423 100644
|
|
|
60061b |
--- a/hw/block/fdc.c
|
|
|
60061b |
+++ b/hw/block/fdc.c
|
|
|
60061b |
@@ -2341,10 +2341,7 @@ void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl, Error **errp)
|
|
|
60061b |
|
|
|
60061b |
/* Restricted for Red Hat Enterprise Linux: */
|
|
|
60061b |
MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
|
|
|
60061b |
- if (!strstr(mc->name, "-rhel7.") &&
|
|
|
60061b |
- /* Exported two upstream machine types allows FDC too */
|
|
|
60061b |
- strcmp(mc->name, "pc-i440fx-4.2") &&
|
|
|
60061b |
- strcmp(mc->name, "pc-i440fx-2.11")) {
|
|
|
60061b |
+ if (!strstr(mc->name, "-rhel7.")) {
|
|
|
60061b |
error_setg(errp, "Device %s is not supported with machine type %s",
|
|
|
60061b |
object_get_typename(OBJECT(dev)), mc->name);
|
|
|
60061b |
return;
|
|
|
60061b |
--
|
|
|
60061b |
2.27.0
|
|
|
60061b |
|