yeahuh / rpms / qemu-kvm

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