902636
From 441128e2f13a56d4949b70971edd2f6902772959 Mon Sep 17 00:00:00 2001
902636
From: Gerd Hoffmann <kraxel@redhat.com>
902636
Date: Wed, 3 Jun 2020 15:15:56 +0100
902636
Subject: [PATCH 01/17] enable ramfb
902636
902636
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
902636
Message-id: <20200603151556.1195-2-kraxel@redhat.com>
902636
Patchwork-id: 97097
902636
O-Subject: [RHEL-AV-8.2.0.z qemu-kvm PATCH 1/1] enable ramfb
902636
Bugzilla: 1841068
902636
RH-Acked-by: Danilo de Paula <ddepaula@redhat.com>
902636
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
902636
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
902636
902636
---
902636
 hw/vfio/pci.c            | 5 -----
902636
 hw/display/Makefile.objs | 5 ++---
902636
 2 files changed, 2 insertions(+), 8 deletions(-)
902636
902636
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
902636
---
902636
 hw/display/Makefile.objs | 5 ++---
902636
 hw/vfio/pci.c            | 5 -----
902636
 2 files changed, 2 insertions(+), 8 deletions(-)
902636
902636
diff --git a/hw/display/Makefile.objs b/hw/display/Makefile.objs
902636
index 3d0cda1..f2182e3 100644
902636
--- a/hw/display/Makefile.objs
902636
+++ b/hw/display/Makefile.objs
902636
@@ -1,9 +1,8 @@
902636
 common-obj-$(CONFIG_DDC) += i2c-ddc.o
902636
 common-obj-$(CONFIG_EDID) += edid-generate.o edid-region.o
902636
 
902636
-# Disabled for Red Hat Enterprise Linux
902636
-#common-obj-$(CONFIG_FW_CFG_DMA) += ramfb.o
902636
-#common-obj-$(CONFIG_FW_CFG_DMA) += ramfb-standalone.o
902636
+common-obj-$(CONFIG_FW_CFG_DMA) += ramfb.o
902636
+common-obj-$(CONFIG_FW_CFG_DMA) += ramfb-standalone.o
902636
 
902636
 common-obj-$(CONFIG_ADS7846) += ads7846.o
902636
 common-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
902636
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
902636
index d717520..f191904 100644
902636
--- a/hw/vfio/pci.c
902636
+++ b/hw/vfio/pci.c
902636
@@ -3249,7 +3249,6 @@ static const TypeInfo vfio_pci_dev_info = {
902636
     },
902636
 };
902636
 
902636
-#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
 static Property vfio_pci_dev_nohotplug_properties[] = {
902636
     DEFINE_PROP_BOOL("ramfb", VFIOPCIDevice, enable_ramfb, false),
902636
     DEFINE_PROP_END_OF_LIST(),
902636
@@ -3269,15 +3268,11 @@ static const TypeInfo vfio_pci_nohotplug_dev_info = {
902636
     .instance_size = sizeof(VFIOPCIDevice),
902636
     .class_init = vfio_pci_nohotplug_dev_class_init,
902636
 };
902636
-#endif
902636
 
902636
 static void register_vfio_pci_dev_type(void)
902636
 {
902636
     type_register_static(&vfio_pci_dev_info);
902636
-
902636
-#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
     type_register_static(&vfio_pci_nohotplug_dev_info);
902636
-#endif
902636
 }
902636
 
902636
 type_init(register_vfio_pci_dev_type)
902636
-- 
902636
1.8.3.1
902636