yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
902636
From 67511676246cce57becbd2dcf5abccf08d9ef737 Mon Sep 17 00:00:00 2001
902636
From: Miroslav Rezanina <mrezanin@redhat.com>
902636
Date: Mon, 11 Jan 2016 11:53:33 +0100
902636
Subject: Enable/disable devices for RHEL
902636
902636
This commit adds all changes related to changes in supported devices.
902636
902636
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
902636
902636
Rebase notes (qemu 3.1.0)
902636
- spapr_rng disabled in default_config
902636
- new hyperv.mak in default configs
902636
- Move changes from x86_64-softmmu.mak to i386-softmmu.mak
902636
- Added CONFIG_VIRTIO_MMIO to aarch64-softmmu.mak
902636
- Removed config_vga_isa.c changes as no longer needed
902636
- Removed new devices
902636
902636
Rebase notes (4.0.0):
902636
- Added CONFIG_PCI_EXPRESS_GENERIC_BRIDGE for aarch64-softmmu.mak
902636
- Added CONFIG_ARM_VIRT for aarch64-softmmu.mak
902636
- Switch to KConfig (upstream)
902636
 - Using device whitelist + without-defualt-devices option
902636
902636
Rebase notes (4.1.0):
902636
- Added CONFIG_USB_OHCI_PCI for ppc64
902636
- Added CONFIG_XIVE_KVM for ppc64
902636
- Added CONFIG_ACPI_PCI for x86_64
902636
- Added CONFIG_SEMIHOSTING for aarch64
902636
- Cleanup aarch64 devices
902636
- Do not build a15mpcore.c
902636
- Removed ide-isa.c stub file
902636
- Use CONFIG_USB_EHCI_PCI on x86_64 (new upstream)
902636
902636
Rebase notes (4.2.0-rc0):
902636
- Use conditional build for isa-superio.c (upstream change)
902636
- Rename PCI_PIIX to PCI_I440FX (upstream change)
902636
902636
Rebase notes (4.2.0-rc3):
902636
- Disabled ccid-card-emulated (patch 92566)
902636
- Disabled vfio-pci-igd-lpc-bridge (patch 92565)
902636
902636
Merged patches (qemu 3.1.0):
902636
- d51e082 Re-enable CONFIG_HYPERV_TESTDEV
902636
- 4b889f3 Declare cirrus-vga as deprecated
902636
- b579d32 Do not build bluetooth support
902636
- 3eef52a Disable CONFIG_IPMI and CONFIG_I2C for ppc64
902636
- 9caf292 Disable CONFIG_CAN_BUS and CONFIG_CAN_SJA1000
902636
902636
Merged patches (4.1.0):
902636
- 20a51f6 fdc: Revert downstream disablement of device "floppy"
902636
- f869cc0 fdc: Restrict floppy controllers to RHEL-7 machine types
902636
- 5909721 aarch64: Compile out IOH3420
902636
- 27b7c44 rh: set CONFIG_BOCHS_DISPLAY=y for x86 (partial)
902636
- 495a27d x86_64-rh-devices: add missing TPM passthrough
902636
- e1fe9fe x86_64-rh-devices: enable TPM emulation (partial)
902636
902636
Merged patches (4.2.0):
902636
- f7587dd RHEL: disable hostmem-memfd
902636
902636
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
902636
---
902636
 Makefile.objs                          |   4 +-
902636
 backends/Makefile.objs                 |   3 +-
902636
 default-configs/aarch64-rh-devices.mak |  20 +++++
902636
 default-configs/aarch64-softmmu.mak    |  10 ++-
902636
 default-configs/ppc64-rh-devices.mak   |  32 ++++++++
902636
 default-configs/ppc64-softmmu.mak      |   8 +-
902636
 default-configs/rh-virtio.mak          |  10 +++
902636
 default-configs/s390x-rh-devices.mak   |  15 ++++
902636
 default-configs/s390x-softmmu.mak      |   4 +-
902636
 default-configs/x86_64-rh-devices.mak  | 100 +++++++++++++++++++++++++
902636
 default-configs/x86_64-softmmu.mak     |   4 +-
902636
 hw/acpi/ich9.c                         |   4 +-
902636
 hw/arm/Makefile.objs                   |   2 +-
902636
 hw/block/fdc.c                         |  10 +++
902636
 hw/bt/Makefile.objs                    |   4 +-
902636
 hw/cpu/Makefile.objs                   |   5 +-
902636
 hw/display/Makefile.objs               |   5 +-
902636
 hw/display/cirrus_vga.c                |   3 +
902636
 hw/ide/piix.c                          |   5 +-
902636
 hw/input/pckbd.c                       |   2 +
902636
 hw/net/e1000.c                         |   2 +
902636
 hw/pci-host/i440fx.c                   |   4 +
902636
 hw/ppc/spapr_cpu_core.c                |   2 +
902636
 hw/usb/Makefile.objs                   |   4 +-
902636
 hw/vfio/pci-quirks.c                   |   9 +++
902636
 hw/vfio/pci.c                          |   5 ++
902636
 qemu-options.hx                        |   7 +-
902636
 redhat/qemu-kvm.spec.template          |   5 +-
902636
 target/arm/cpu.c                       |   4 +-
902636
 target/i386/cpu.c                      |  35 +++++++--
902636
 target/ppc/cpu-models.c                |  10 +++
902636
 target/s390x/cpu_models.c              |   3 +
902636
 target/s390x/kvm.c                     |   8 ++
902636
 util/memfd.c                           |   2 +-
902636
 vl.c                                   |   8 +-
902636
 35 files changed, 317 insertions(+), 41 deletions(-)
902636
 create mode 100644 default-configs/aarch64-rh-devices.mak
902636
 create mode 100644 default-configs/ppc64-rh-devices.mak
902636
 create mode 100644 default-configs/rh-virtio.mak
902636
 create mode 100644 default-configs/s390x-rh-devices.mak
902636
 create mode 100644 default-configs/x86_64-rh-devices.mak
902636
902636
diff --git a/Makefile.objs b/Makefile.objs
902636
index 11ba1a36bd..fcf63e1096 100644
902636
--- a/Makefile.objs
902636
+++ b/Makefile.objs
902636
@@ -65,8 +65,8 @@ common-obj-y += replay/
902636
 
902636
 common-obj-y += ui/
902636
 common-obj-m += ui/
902636
-common-obj-y += bt-host.o bt-vhci.o
902636
-bt-host.o-cflags := $(BLUEZ_CFLAGS)
902636
+#common-obj-y += bt-host.o bt-vhci.o
902636
+#bt-host.o-cflags := $(BLUEZ_CFLAGS)
902636
 
902636
 common-obj-y += dma-helpers.o
902636
 common-obj-y += vl.o
902636
diff --git a/backends/Makefile.objs b/backends/Makefile.objs
902636
index f0691116e8..f328d404bf 100644
902636
--- a/backends/Makefile.objs
902636
+++ b/backends/Makefile.objs
902636
@@ -16,4 +16,5 @@ endif
902636
 
902636
 common-obj-$(call land,$(CONFIG_VHOST_USER),$(CONFIG_VIRTIO)) += vhost-user.o
902636
 
902636
-common-obj-$(CONFIG_LINUX) += hostmem-memfd.o
902636
+# RHEL: disable memfd
902636
+# common-obj-$(CONFIG_LINUX) += hostmem-memfd.o
902636
diff --git a/default-configs/aarch64-rh-devices.mak b/default-configs/aarch64-rh-devices.mak
902636
new file mode 100644
902636
index 0000000000..a1ed641174
902636
--- /dev/null
902636
+++ b/default-configs/aarch64-rh-devices.mak
902636
@@ -0,0 +1,20 @@
902636
+include rh-virtio.mak
902636
+
902636
+CONFIG_ARM_GIC_KVM=y
902636
+CONFIG_ARM_SMMUV3=y
902636
+CONFIG_ARM_V7M=y
902636
+CONFIG_ARM_VIRT=y
902636
+CONFIG_EDID=y
902636
+CONFIG_PCIE_PORT=y
902636
+CONFIG_PCI_DEVICES=y
902636
+CONFIG_PCI_TESTDEV=y
902636
+CONFIG_PFLASH_CFI01=y
902636
+CONFIG_SCSI=y
902636
+CONFIG_SEMIHOSTING=y
902636
+CONFIG_USB=y
902636
+CONFIG_USB_XHCI=y
902636
+CONFIG_VFIO=y
902636
+CONFIG_VFIO_PCI=y
902636
+CONFIG_VIRTIO_MMIO=y
902636
+CONFIG_VIRTIO_PCI=y
902636
+CONFIG_XIO3130=y
902636
diff --git a/default-configs/aarch64-softmmu.mak b/default-configs/aarch64-softmmu.mak
902636
index 958b1e08e4..8f6867d48a 100644
902636
--- a/default-configs/aarch64-softmmu.mak
902636
+++ b/default-configs/aarch64-softmmu.mak
902636
@@ -1,8 +1,10 @@
902636
 # Default configuration for aarch64-softmmu
902636
 
902636
 # We support all the 32 bit boards so need all their config
902636
-include arm-softmmu.mak
902636
+#include arm-softmmu.mak
902636
 
902636
-CONFIG_XLNX_ZYNQMP_ARM=y
902636
-CONFIG_XLNX_VERSAL=y
902636
-CONFIG_SBSA_REF=y
902636
+#CONFIG_XLNX_ZYNQMP_ARM=y
902636
+#CONFIG_XLNX_VERSAL=y
902636
+#CONFIG_SBSA_REF=y
902636
+
902636
+include aarch64-rh-devices.mak
902636
diff --git a/default-configs/ppc64-rh-devices.mak b/default-configs/ppc64-rh-devices.mak
902636
new file mode 100644
902636
index 0000000000..35f2106d06
902636
--- /dev/null
902636
+++ b/default-configs/ppc64-rh-devices.mak
902636
@@ -0,0 +1,32 @@
902636
+include rh-virtio.mak
902636
+
902636
+CONFIG_DIMM=y
902636
+CONFIG_MEM_DEVICE=y
902636
+CONFIG_PCI=y
902636
+CONFIG_PCI_DEVICES=y
902636
+CONFIG_PCI_TESTDEV=y
902636
+CONFIG_PSERIES=y
902636
+CONFIG_SCSI=y
902636
+CONFIG_SPAPR_VSCSI=y
902636
+CONFIG_TEST_DEVICES=y
902636
+CONFIG_USB=y
902636
+CONFIG_USB_OHCI=y
902636
+CONFIG_USB_OHCI_PCI=y
902636
+CONFIG_USB_SMARTCARD=y
902636
+CONFIG_USB_STORAGE_BOT=y
902636
+CONFIG_USB_XHCI=y
902636
+CONFIG_USB_XHCI_NEC=y
902636
+CONFIG_VFIO=y
902636
+CONFIG_VFIO_PCI=y
902636
+CONFIG_VGA=y
902636
+CONFIG_VGA_PCI=y
902636
+CONFIG_VHOST_USER=y
902636
+CONFIG_VIRTIO_PCI=y
902636
+CONFIG_VIRTIO_VGA=y
902636
+CONFIG_WDT_IB6300ESB=y
902636
+CONFIG_XICS=y
902636
+CONFIG_XICS_KVM=y
902636
+CONFIG_XICS_SPAPR=y
902636
+CONFIG_XIVE=y
902636
+CONFIG_XIVE_SPAPR=y
902636
+CONFIG_XIVE_KVM=y
902636
diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak
902636
index cca52665d9..fec354f327 100644
902636
--- a/default-configs/ppc64-softmmu.mak
902636
+++ b/default-configs/ppc64-softmmu.mak
902636
@@ -1,10 +1,12 @@
902636
 # Default configuration for ppc64-softmmu
902636
 
902636
 # Include all 32-bit boards
902636
-include ppc-softmmu.mak
902636
+#include ppc-softmmu.mak
902636
 
902636
 # For PowerNV
902636
-CONFIG_POWERNV=y
902636
+#CONFIG_POWERNV=y
902636
 
902636
 # For pSeries
902636
-CONFIG_PSERIES=y
902636
+#CONFIG_PSERIES=y
902636
+
902636
+include ppc64-rh-devices.mak
902636
diff --git a/default-configs/rh-virtio.mak b/default-configs/rh-virtio.mak
902636
new file mode 100644
902636
index 0000000000..94ede1b5f6
902636
--- /dev/null
902636
+++ b/default-configs/rh-virtio.mak
902636
@@ -0,0 +1,10 @@
902636
+CONFIG_VIRTIO=y
902636
+CONFIG_VIRTIO_BALLOON=y
902636
+CONFIG_VIRTIO_BLK=y
902636
+CONFIG_VIRTIO_GPU=y
902636
+CONFIG_VIRTIO_INPUT=y
902636
+CONFIG_VIRTIO_INPUT_HOST=y
902636
+CONFIG_VIRTIO_NET=y
902636
+CONFIG_VIRTIO_RNG=y
902636
+CONFIG_VIRTIO_SCSI=y
902636
+CONFIG_VIRTIO_SERIAL=y
902636
diff --git a/default-configs/s390x-rh-devices.mak b/default-configs/s390x-rh-devices.mak
902636
new file mode 100644
902636
index 0000000000..c3c73fe752
902636
--- /dev/null
902636
+++ b/default-configs/s390x-rh-devices.mak
902636
@@ -0,0 +1,15 @@
902636
+include rh-virtio.mak
902636
+
902636
+CONFIG_PCI=y
902636
+CONFIG_S390_CCW_VIRTIO=y
902636
+CONFIG_S390_FLIC=y
902636
+CONFIG_S390_FLIC_KVM=y
902636
+CONFIG_SCLPCONSOLE=y
902636
+CONFIG_SCSI=y
902636
+CONFIG_TERMINAL3270=y
902636
+CONFIG_VFIO=y
902636
+CONFIG_VFIO_AP=y
902636
+CONFIG_VFIO_PCI=y
902636
+CONFIG_VHOST_USER=y
902636
+CONFIG_VIRTIO_CCW=y
902636
+CONFIG_WDT_DIAG288=y
902636
diff --git a/default-configs/s390x-softmmu.mak b/default-configs/s390x-softmmu.mak
902636
index f2287a133f..3e2e388e91 100644
902636
--- a/default-configs/s390x-softmmu.mak
902636
+++ b/default-configs/s390x-softmmu.mak
902636
@@ -10,4 +10,6 @@
902636
 
902636
 # Boards:
902636
 #
902636
-CONFIG_S390_CCW_VIRTIO=y
902636
+#CONFIG_S390_CCW_VIRTIO=y
902636
+
902636
+include s390x-rh-devices.mak
902636
diff --git a/default-configs/x86_64-rh-devices.mak b/default-configs/x86_64-rh-devices.mak
902636
new file mode 100644
902636
index 0000000000..d59b6d9bb5
902636
--- /dev/null
902636
+++ b/default-configs/x86_64-rh-devices.mak
902636
@@ -0,0 +1,100 @@
902636
+include rh-virtio.mak
902636
+
902636
+CONFIG_AC97=y
902636
+CONFIG_ACPI=y
902636
+CONFIG_ACPI_PCI=y
902636
+CONFIG_ACPI_CPU_HOTPLUG=y
902636
+CONFIG_ACPI_MEMORY_HOTPLUG=y
902636
+CONFIG_ACPI_NVDIMM=y
902636
+CONFIG_ACPI_SMBUS=y
902636
+CONFIG_ACPI_VMGENID=y
902636
+CONFIG_ACPI_X86=y
902636
+CONFIG_ACPI_X86_ICH=y
902636
+CONFIG_AHCI=y
902636
+CONFIG_APIC=y
902636
+CONFIG_APM=y
902636
+CONFIG_BOCHS_DISPLAY=y
902636
+CONFIG_DIMM=y
902636
+CONFIG_E1000E_PCI_EXPRESS=y
902636
+CONFIG_E1000_PCI=y
902636
+CONFIG_EDU=y
902636
+CONFIG_FDC=y
902636
+CONFIG_FW_CFG_DMA=y
902636
+CONFIG_HDA=y
902636
+CONFIG_HYPERV=y
902636
+CONFIG_HYPERV_TESTDEV=y
902636
+CONFIG_I2C=y
902636
+CONFIG_I440FX=y
902636
+CONFIG_I8254=y
902636
+CONFIG_I8257=y
902636
+CONFIG_I8259=y
902636
+CONFIG_I82801B11=y
902636
+CONFIG_IDE_CORE=y
902636
+CONFIG_IDE_PCI=y
902636
+CONFIG_IDE_PIIX=y
902636
+CONFIG_IDE_QDEV=y
902636
+CONFIG_IOAPIC=y
902636
+CONFIG_IOH3420=y
902636
+CONFIG_ISA_BUS=y
902636
+CONFIG_ISA_DEBUG=y
902636
+CONFIG_ISA_TESTDEV=y
902636
+CONFIG_LPC_ICH9=y
902636
+CONFIG_MC146818RTC=y
902636
+CONFIG_MEM_DEVICE=y
902636
+CONFIG_NVDIMM=y
902636
+CONFIG_OPENGL=y
902636
+CONFIG_PAM=y
902636
+CONFIG_PC=y
902636
+CONFIG_PCI=y
902636
+CONFIG_PCIE_PORT=y
902636
+CONFIG_PCI_DEVICES=y
902636
+CONFIG_PCI_EXPRESS=y
902636
+CONFIG_PCI_EXPRESS_Q35=y
902636
+CONFIG_PCI_I440FX=y
902636
+CONFIG_PCI_TESTDEV=y
902636
+CONFIG_PCKBD=y
902636
+CONFIG_PCSPK=y
902636
+CONFIG_PC_ACPI=y
902636
+CONFIG_PC_PCI=y
902636
+CONFIG_PFLASH_CFI01=y
902636
+CONFIG_PVPANIC=y
902636
+CONFIG_PXB=y
902636
+CONFIG_Q35=y
902636
+CONFIG_QXL=y
902636
+CONFIG_RTL8139_PCI=y
902636
+CONFIG_SCSI=y
902636
+CONFIG_SERIAL=y
902636
+CONFIG_SERIAL_ISA=y
902636
+CONFIG_SERIAL_PCI=y
902636
+CONFIG_SEV=y
902636
+CONFIG_SGA=y
902636
+CONFIG_SMBIOS=y
902636
+CONFIG_SMBUS_EEPROM=y
902636
+CONFIG_SPICE=y
902636
+CONFIG_TEST_DEVICES=y
902636
+CONFIG_USB=y
902636
+CONFIG_USB_EHCI=y
902636
+CONFIG_USB_EHCI_PCI=y
902636
+CONFIG_USB_SMARTCARD=y
902636
+CONFIG_USB_STORAGE_BOT=y
902636
+CONFIG_USB_UHCI=y
902636
+CONFIG_USB_XHCI=y
902636
+CONFIG_USB_XHCI_NEC=y
902636
+CONFIG_VFIO=y
902636
+CONFIG_VFIO_PCI=y
902636
+CONFIG_VGA=y
902636
+CONFIG_VGA_CIRRUS=y
902636
+CONFIG_VGA_PCI=y
902636
+CONFIG_VHOST_USER=y
902636
+CONFIG_VIRTIO_PCI=y
902636
+CONFIG_VIRTIO_VGA=y
902636
+CONFIG_VMMOUSE=y
902636
+CONFIG_VMPORT=y
902636
+CONFIG_VTD=y
902636
+CONFIG_WDT_IB6300ESB=y
902636
+CONFIG_WDT_IB700=y
902636
+CONFIG_XIO3130=y
902636
+CONFIG_TPM_CRB=y
902636
+CONFIG_TPM_TIS=y
902636
+CONFIG_TPM_EMULATOR=y
902636
+CONFIG_TPM_PASSTHROUGH=y
902636
diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak
902636
index 64b2ee2960..b5de7e5279 100644
902636
--- a/default-configs/x86_64-softmmu.mak
902636
+++ b/default-configs/x86_64-softmmu.mak
902636
@@ -1,3 +1,5 @@
902636
 # Default configuration for x86_64-softmmu
902636
 
902636
-include i386-softmmu.mak
902636
+#include i386-softmmu.mak
902636
+
902636
+include x86_64-rh-devices.mak
902636
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
902636
index 2034dd749e..ab203ad448 100644
902636
--- a/hw/acpi/ich9.c
902636
+++ b/hw/acpi/ich9.c
902636
@@ -449,8 +449,8 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs *pm, Error **errp)
902636
     static const uint32_t gpe0_len = ICH9_PMIO_GPE0_LEN;
902636
     pm->acpi_memory_hotplug.is_enabled = true;
902636
     pm->cpu_hotplug_legacy = true;
902636
-    pm->disable_s3 = 0;
902636
-    pm->disable_s4 = 0;
902636
+    pm->disable_s3 = 1;
902636
+    pm->disable_s4 = 1;
902636
     pm->s4_val = 2;
902636
 
902636
     object_property_add_uint32_ptr(obj, ACPI_PM_PROP_PM_IO_BASE,
902636
diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs
902636
index fe749f65fd..2aa1a9efdd 100644
902636
--- a/hw/arm/Makefile.objs
902636
+++ b/hw/arm/Makefile.objs
902636
@@ -27,7 +27,7 @@ obj-$(CONFIG_VEXPRESS) += vexpress.o
902636
 obj-$(CONFIG_ZYNQ) += xilinx_zynq.o
902636
 obj-$(CONFIG_SABRELITE) += sabrelite.o
902636
 
902636
-obj-$(CONFIG_ARM_V7M) += armv7m.o
902636
+#obj-$(CONFIG_ARM_V7M) += armv7m.o
902636
 obj-$(CONFIG_EXYNOS4) += exynos4210.o
902636
 obj-$(CONFIG_PXA2XX) += pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o
902636
 obj-$(CONFIG_DIGIC) += digic.o
902636
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
902636
index ac5d31e8c1..e925bac002 100644
902636
--- a/hw/block/fdc.c
902636
+++ b/hw/block/fdc.c
902636
@@ -46,6 +46,8 @@
902636
 #include "qemu/module.h"
902636
 #include "trace.h"
902636
 
902636
+#include "hw/boards.h"
902636
+
902636
 /********************************************************/
902636
 /* debug Floppy devices */
902636
 
902636
@@ -2638,6 +2640,14 @@ static void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl,
902636
     int i, j;
902636
     static int command_tables_inited = 0;
902636
 
902636
+    /* Restricted for Red Hat Enterprise Linux: */
902636
+    MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
902636
+    if (!strstr(mc->name, "-rhel7.")) {
902636
+        error_setg(errp, "Device %s is not supported with machine type %s",
902636
+                   object_get_typename(OBJECT(dev)), mc->name);
902636
+        return;
902636
+    }
902636
+
902636
     if (fdctrl->fallback == FLOPPY_DRIVE_TYPE_AUTO) {
902636
         error_setg(errp, "Cannot choose a fallback FDrive type of 'auto'");
902636
     }
902636
diff --git a/hw/bt/Makefile.objs b/hw/bt/Makefile.objs
902636
index 867a7d2e8a..e678e9ee3c 100644
902636
--- a/hw/bt/Makefile.objs
902636
+++ b/hw/bt/Makefile.objs
902636
@@ -1,3 +1,3 @@
902636
-common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
902636
-common-obj-y += hci-csr.o
902636
+#common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
902636
+#common-obj-y += hci-csr.o
902636
 
902636
diff --git a/hw/cpu/Makefile.objs b/hw/cpu/Makefile.objs
902636
index 8db9e8a7b3..1601ea93c7 100644
902636
--- a/hw/cpu/Makefile.objs
902636
+++ b/hw/cpu/Makefile.objs
902636
@@ -1,5 +1,6 @@
902636
 obj-$(CONFIG_ARM11MPCORE) += arm11mpcore.o
902636
 obj-$(CONFIG_REALVIEW) += realview_mpcore.o
902636
 obj-$(CONFIG_A9MPCORE) += a9mpcore.o
902636
-obj-$(CONFIG_A15MPCORE) += a15mpcore.o
902636
-common-obj-y += core.o cluster.o
902636
+#obj-$(CONFIG_A15MPCORE) += a15mpcore.o
902636
+common-obj-y += core.o
902636
+# cluster.o
902636
diff --git a/hw/display/Makefile.objs b/hw/display/Makefile.objs
902636
index f2182e3bef..3d0cda1b52 100644
902636
--- a/hw/display/Makefile.objs
902636
+++ b/hw/display/Makefile.objs
902636
@@ -1,8 +1,9 @@
902636
 common-obj-$(CONFIG_DDC) += i2c-ddc.o
902636
 common-obj-$(CONFIG_EDID) += edid-generate.o edid-region.o
902636
 
902636
-common-obj-$(CONFIG_FW_CFG_DMA) += ramfb.o
902636
-common-obj-$(CONFIG_FW_CFG_DMA) += ramfb-standalone.o
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
 
902636
 common-obj-$(CONFIG_ADS7846) += ads7846.o
902636
 common-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
902636
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
902636
index cd283e53b4..93afa26fda 100644
902636
--- a/hw/display/cirrus_vga.c
902636
+++ b/hw/display/cirrus_vga.c
902636
@@ -2975,6 +2975,9 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
902636
      PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(dev);
902636
      int16_t device_id = pc->device_id;
902636
 
902636
+     warn_report("'cirrus-vga' is deprecated, "
902636
+                 "please use a different VGA card instead");
902636
+
902636
      /* follow real hardware, cirrus card emulated has 4 MB video memory.
902636
        Also accept 8 MB/16 MB for backward compatibility. */
902636
      if (s->vga.vram_size_mb != 4 && s->vga.vram_size_mb != 8 &&
902636
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
902636
index db313dd3b1..e14858ca64 100644
902636
--- a/hw/ide/piix.c
902636
+++ b/hw/ide/piix.c
902636
@@ -251,7 +251,8 @@ static void piix3_ide_class_init(ObjectClass *klass, void *data)
902636
     k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1;
902636
     k->class_id = PCI_CLASS_STORAGE_IDE;
902636
     set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
902636
-    dc->hotpluggable = false;
902636
+    /* Disabled for Red Hat Enterprise Linux: */
902636
+    dc->user_creatable = false;
902636
 }
902636
 
902636
 static const TypeInfo piix3_ide_info = {
902636
@@ -279,6 +280,8 @@ static void piix4_ide_class_init(ObjectClass *klass, void *data)
902636
     k->class_id = PCI_CLASS_STORAGE_IDE;
902636
     set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
902636
     dc->hotpluggable = false;
902636
+    /* Disabled for Red Hat Enterprise Linux: */
902636
+    dc->user_creatable = false;
902636
 }
902636
 
902636
 static const TypeInfo piix4_ide_info = {
902636
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
902636
index f0acfd86f7..390eb6579c 100644
902636
--- a/hw/input/pckbd.c
902636
+++ b/hw/input/pckbd.c
902636
@@ -571,6 +571,8 @@ static void i8042_class_initfn(ObjectClass *klass, void *data)
902636
     dc->realize = i8042_realizefn;
902636
     dc->vmsd = &vmstate_kbd_isa;
902636
     set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
902636
+    /* Disabled for Red Hat Enterprise Linux: */
902636
+    dc->user_creatable = false;
902636
 }
902636
 
902636
 static const TypeInfo i8042_info = {
902636
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
902636
index a73f8d404e..fc73fdd6fa 100644
902636
--- a/hw/net/e1000.c
902636
+++ b/hw/net/e1000.c
902636
@@ -1795,6 +1795,7 @@ static const E1000Info e1000_devices[] = {
902636
         .revision  = 0x03,
902636
         .phy_id2   = E1000_PHY_ID2_8254xx_DEFAULT,
902636
     },
902636
+#if 0 /* Disabled for Red Hat Enterprise Linux 7 */
902636
     {
902636
         .name      = "e1000-82544gc",
902636
         .device_id = E1000_DEV_ID_82544GC_COPPER,
902636
@@ -1807,6 +1808,7 @@ static const E1000Info e1000_devices[] = {
902636
         .revision  = 0x03,
902636
         .phy_id2   = E1000_PHY_ID2_8254xx_DEFAULT,
902636
     },
902636
+#endif
902636
 };
902636
 
902636
 static void e1000_register_types(void)
902636
diff --git a/hw/pci-host/i440fx.c b/hw/pci-host/i440fx.c
902636
index f27131102d..17f10efae2 100644
902636
--- a/hw/pci-host/i440fx.c
902636
+++ b/hw/pci-host/i440fx.c
902636
@@ -386,6 +386,7 @@ static const TypeInfo i440fx_info = {
902636
     },
902636
 };
902636
 
902636
+#if 0 /*  Disabled in Red Hat Enterprise Linux */
902636
 /* IGD Passthrough Host Bridge. */
902636
 typedef struct {
902636
     uint8_t offset;
902636
@@ -469,6 +470,7 @@ static const TypeInfo igd_passthrough_i440fx_info = {
902636
     .instance_size = sizeof(PCII440FXState),
902636
     .class_init    = igd_passthrough_i440fx_class_init,
902636
 };
902636
+#endif
902636
 
902636
 static const char *i440fx_pcihost_root_bus_path(PCIHostState *host_bridge,
902636
                                                 PCIBus *rootbus)
902636
@@ -514,7 +516,9 @@ static const TypeInfo i440fx_pcihost_info = {
902636
 static void i440fx_register_types(void)
902636
 {
902636
     type_register_static(&i440fx_info);
902636
+#if 0 /*  Disabled in Red Hat Enterprise Linux */
902636
     type_register_static(&igd_passthrough_i440fx_info);
902636
+#endif
902636
     type_register_static(&i440fx_pcihost_info);
902636
 }
902636
 
902636
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
902636
index 8339c4c0f8..301cd7b4e4 100644
902636
--- a/hw/ppc/spapr_cpu_core.c
902636
+++ b/hw/ppc/spapr_cpu_core.c
902636
@@ -403,10 +403,12 @@ static const TypeInfo spapr_cpu_core_type_infos[] = {
902636
         .instance_size = sizeof(SpaprCpuCore),
902636
         .class_size = sizeof(SpaprCpuCoreClass),
902636
     },
902636
+#if 0  /* Disabled for Red Hat Enterprise Linux */
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("970_v2.2"),
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("970mp_v1.0"),
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("970mp_v1.1"),
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("power5+_v2.1"),
902636
+#endif
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("power7_v2.3"),
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("power7+_v2.1"),
902636
     DEFINE_SPAPR_CPU_CORE_TYPE("power8_v2.0"),
902636
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs
902636
index 303ac084a0..700a91886e 100644
902636
--- a/hw/usb/Makefile.objs
902636
+++ b/hw/usb/Makefile.objs
902636
@@ -30,7 +30,9 @@ common-obj-$(CONFIG_USB_BLUETOOTH)    += dev-bluetooth.o
902636
 ifeq ($(CONFIG_USB_SMARTCARD),y)
902636
 common-obj-y                          += dev-smartcard-reader.o
902636
 common-obj-$(CONFIG_SMARTCARD)        += smartcard.mo
902636
-smartcard.mo-objs := ccid-card-passthru.o ccid-card-emulated.o
902636
+# Disabled for Red Hat Enterprise Linux:
902636
+# smartcard.mo-objs := ccid-card-passthru.o ccid-card-emulated.o
902636
+smartcard.mo-objs := ccid-card-passthru.o
902636
 smartcard.mo-cflags := $(SMARTCARD_CFLAGS)
902636
 smartcard.mo-libs := $(SMARTCARD_LIBS)
902636
 endif
902636
diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
902636
index 136f3a9ad6..4505ffe48a 100644
902636
--- a/hw/vfio/pci-quirks.c
902636
+++ b/hw/vfio/pci-quirks.c
902636
@@ -1166,6 +1166,7 @@ static void vfio_probe_rtl8168_bar2_quirk(VFIOPCIDevice *vdev, int nr)
902636
     trace_vfio_quirk_rtl8168_probe(vdev->vbasedev.name);
902636
 }
902636
 
902636
+#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
 /*
902636
  * Intel IGD support
902636
  *
902636
@@ -1239,6 +1240,7 @@ static int igd_gen(VFIOPCIDevice *vdev)
902636
 
902636
     return 8; /* Assume newer is compatible */
902636
 }
902636
+#endif
902636
 
902636
 typedef struct VFIOIGDQuirk {
902636
     struct VFIOPCIDevice *vdev;
902636
@@ -1311,6 +1313,7 @@ typedef struct {
902636
     uint8_t len;
902636
 } IGDHostInfo;
902636
 
902636
+#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
 static const IGDHostInfo igd_host_bridge_infos[] = {
902636
     {PCI_REVISION_ID,         2},
902636
     {PCI_SUBSYSTEM_VENDOR_ID, 2},
902636
@@ -1559,9 +1562,11 @@ static const MemoryRegionOps vfio_igd_index_quirk = {
902636
     .write = vfio_igd_quirk_index_write,
902636
     .endianness = DEVICE_LITTLE_ENDIAN,
902636
 };
902636
+#endif
902636
 
902636
 static void vfio_probe_igd_bar4_quirk(VFIOPCIDevice *vdev, int nr)
902636
 {
902636
+#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
     struct vfio_region_info *rom = NULL, *opregion = NULL,
902636
                             *host = NULL, *lpc = NULL;
902636
     VFIOQuirk *quirk;
902636
@@ -1572,6 +1577,7 @@ static void vfio_probe_igd_bar4_quirk(VFIOPCIDevice *vdev, int nr)
902636
     uint32_t gmch;
902636
     uint16_t cmd_orig, cmd;
902636
     Error *err = NULL;
902636
+#endif
902636
 
902636
     /*
902636
      * This must be an Intel VGA device at address 00:02.0 for us to even
902636
@@ -1585,6 +1591,8 @@ static void vfio_probe_igd_bar4_quirk(VFIOPCIDevice *vdev, int nr)
902636
         return;
902636
     }
902636
 
902636
+#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
+
902636
     /*
902636
      * We need to create an LPC/ISA bridge at PCI bus address 00:1f.0 that we
902636
      * can stuff host values into, so if there's already one there and it's not
902636
@@ -1809,6 +1817,7 @@ out:
902636
     g_free(opregion);
902636
     g_free(host);
902636
     g_free(lpc);
902636
+#endif
902636
 }
902636
 
902636
 /*
902636
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
902636
index 2d40b396f2..c8534d3035 100644
902636
--- a/hw/vfio/pci.c
902636
+++ b/hw/vfio/pci.c
902636
@@ -3220,6 +3220,7 @@ 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
@@ -3239,11 +3240,15 @@ 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
diff --git a/qemu-options.hx b/qemu-options.hx
902636
index 65c9473b73..fc17aca631 100644
902636
--- a/qemu-options.hx
902636
+++ b/qemu-options.hx
902636
@@ -2111,11 +2111,6 @@ ETEXI
902636
 
902636
 DEF("no-hpet", 0, QEMU_OPTION_no_hpet,
902636
     "-no-hpet        disable HPET\n", QEMU_ARCH_I386)
902636
-STEXI
902636
-@item -no-hpet
902636
-@findex -no-hpet
902636
-Disable HPET support.
902636
-ETEXI
902636
 
902636
 DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable,
902636
     "-acpitable [sig=str][,rev=n][,oem_id=str][,oem_table_id=str][,oem_rev=n][,asl_compiler_id=str][,asl_compiler_rev=n][,{data|file}=file1[:file2]...]\n"
902636
@@ -3125,6 +3120,7 @@ STEXI
902636
 ETEXI
902636
 DEFHEADING()
902636
 
902636
+#if 0
902636
 DEFHEADING(Bluetooth(R) options:)
902636
 STEXI
902636
 @table @option
902636
@@ -3203,6 +3199,7 @@ STEXI
902636
 @end table
902636
 ETEXI
902636
 DEFHEADING()
902636
+#endif
902636
 
902636
 #ifdef CONFIG_TPM
902636
 DEFHEADING(TPM device options:)
902636
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
902636
index 7a4ac9339b..3788fc3c4a 100644
902636
--- a/target/arm/cpu.c
902636
+++ b/target/arm/cpu.c
902636
@@ -2744,7 +2744,9 @@ static void arm_cpu_register_types(void)
902636
     type_register_static(&idau_interface_type_info);
902636
 
902636
     while (info->name) {
902636
-        cpu_register(info);
902636
+        /* RHEL specific: Filter out unsupported cpu models */
902636
+        if (!strcmp(info->name, "cortex-a15"))
902636
+            cpu_register(info);
902636
         info++;
902636
     }
902636
 
902636
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
902636
index 69f518a21a..1b7880ae3a 100644
902636
--- a/target/i386/cpu.c
902636
+++ b/target/i386/cpu.c
902636
@@ -1835,14 +1835,14 @@ static X86CPUDefinition builtin_x86_defs[] = {
902636
         .family = 6,
902636
         .model = 6,
902636
         .stepping = 3,
902636
-        .features[FEAT_1_EDX] =
902636
-            PPRO_FEATURES |
902636
-            CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA |
902636
-            CPUID_PSE36,
902636
-        .features[FEAT_1_ECX] =
902636
-            CPUID_EXT_SSE3 | CPUID_EXT_CX16,
902636
-        .features[FEAT_8000_0001_EDX] =
902636
-            CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX,
902636
+        .features[FEAT_1_EDX] = CPUID_SSE2 | CPUID_SSE | CPUID_FXSR |
902636
+            CPUID_MMX | CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV |
902636
+            CPUID_MCA | CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC |
902636
+            CPUID_CX8 | CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC |
902636
+            CPUID_PSE | CPUID_DE | CPUID_FP87,
902636
+        .features[FEAT_1_ECX] = CPUID_EXT_CX16 | CPUID_EXT_SSE3,
902636
+        .features[FEAT_8000_0001_EDX] = CPUID_EXT2_LM | CPUID_EXT2_NX |
902636
+            CPUID_EXT2_SYSCALL,
902636
         .features[FEAT_8000_0001_ECX] =
902636
             CPUID_EXT3_LAHF_LM | CPUID_EXT3_SVM,
902636
         .xlevel = 0x8000000A,
902636
@@ -2128,6 +2128,25 @@ static X86CPUDefinition builtin_x86_defs[] = {
902636
         .xlevel = 0x80000008,
902636
         .model_id = "Intel(R) Atom(TM) CPU N270   @ 1.60GHz",
902636
     },
902636
+    {
902636
+        .name = "cpu64-rhel6",
902636
+        .level = 4,
902636
+        .vendor = CPUID_VENDOR_AMD,
902636
+        .family = 6,
902636
+        .model = 13,
902636
+        .stepping = 3,
902636
+        .features[FEAT_1_EDX] = CPUID_SSE2 | CPUID_SSE | CPUID_FXSR |
902636
+             CPUID_MMX | CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV |
902636
+             CPUID_MCA | CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC |
902636
+             CPUID_CX8 | CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC |
902636
+             CPUID_PSE | CPUID_DE | CPUID_FP87,
902636
+        .features[FEAT_1_ECX] = CPUID_EXT_CX16 | CPUID_EXT_SSE3,
902636
+        .features[FEAT_8000_0001_EDX] = CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL,
902636
+        .features[FEAT_8000_0001_ECX] = CPUID_EXT3_SSE4A | CPUID_EXT3_ABM |
902636
+             CPUID_EXT3_SVM | CPUID_EXT3_LAHF_LM,
902636
+        .xlevel = 0x8000000A,
902636
+        .model_id = "QEMU Virtual CPU version (cpu64-rhel6)",
902636
+    },
902636
     {
902636
         .name = "Conroe",
902636
         .level = 10,
902636
diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
902636
index 086548e9b9..1bbf378c18 100644
902636
--- a/target/ppc/cpu-models.c
902636
+++ b/target/ppc/cpu-models.c
902636
@@ -66,6 +66,7 @@
902636
 #define POWERPC_DEF(_name, _pvr, _type, _desc)                              \
902636
     POWERPC_DEF_SVR(_name, _desc, _pvr, POWERPC_SVR_NONE, _type)
902636
 
902636
+#if 0  /* Embedded and 32-bit CPUs disabled for Red Hat Enterprise Linux */
902636
     /* Embedded PowerPC                                                      */
902636
     /* PowerPC 401 family                                                    */
902636
     POWERPC_DEF("401",           CPU_POWERPC_401,                    401,
902636
@@ -740,8 +741,10 @@
902636
                 "PowerPC 7447A v1.2 (G4)")
902636
     POWERPC_DEF("7457a_v1.2",    CPU_POWERPC_74x7A_v12,              7455,
902636
                 "PowerPC 7457A v1.2 (G4)")
902636
+#endif
902636
     /* 64 bits PowerPC                                                       */
902636
 #if defined(TARGET_PPC64)
902636
+#if 0  /* Disabled for Red Hat Enterprise Linux */
902636
     POWERPC_DEF("970_v2.2",      CPU_POWERPC_970_v22,                970,
902636
                 "PowerPC 970 v2.2")
902636
     POWERPC_DEF("970fx_v1.0",    CPU_POWERPC_970FX_v10,              970,
902636
@@ -760,6 +763,7 @@
902636
                 "PowerPC 970MP v1.1")
902636
     POWERPC_DEF("power5+_v2.1",  CPU_POWERPC_POWER5P_v21,            POWER5P,
902636
                 "POWER5+ v2.1")
902636
+#endif
902636
     POWERPC_DEF("power7_v2.3",   CPU_POWERPC_POWER7_v23,             POWER7,
902636
                 "POWER7 v2.3")
902636
     POWERPC_DEF("power7+_v2.1",  CPU_POWERPC_POWER7P_v21,            POWER7,
902636
@@ -780,6 +784,7 @@
902636
 /* PowerPC CPU aliases                                                     */
902636
 
902636
 PowerPCCPUAlias ppc_cpu_aliases[] = {
902636
+#if 0  /* Embedded and 32-bit CPUs disabled for Red Hat Enterprise Linux */
902636
     { "403", "403gc" },
902636
     { "405", "405d4" },
902636
     { "405cr", "405crc" },
902636
@@ -938,12 +943,15 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
902636
     { "7447a", "7447a_v1.2" },
902636
     { "7457a", "7457a_v1.2" },
902636
     { "apollo7pm", "7457a_v1.0" },
902636
+#endif
902636
 #if defined(TARGET_PPC64)
902636
+#if 0  /* Disabled for Red Hat Enterprise Linux */
902636
     { "970", "970_v2.2" },
902636
     { "970fx", "970fx_v3.1" },
902636
     { "970mp", "970mp_v1.1" },
902636
     { "power5+", "power5+_v2.1" },
902636
     { "power5gs", "power5+_v2.1" },
902636
+#endif
902636
     { "power7", "power7_v2.3" },
902636
     { "power7+", "power7+_v2.1" },
902636
     { "power8e", "power8e_v2.1" },
902636
@@ -952,6 +960,7 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
902636
     { "power9", "power9_v2.0" },
902636
 #endif
902636
 
902636
+#if 0  /* Disabled for Red Hat Enterprise Linux */
902636
     /* Generic PowerPCs */
902636
 #if defined(TARGET_PPC64)
902636
     { "ppc64", "970fx_v3.1" },
902636
@@ -959,5 +968,6 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
902636
     { "ppc32", "604" },
902636
     { "ppc", "604" },
902636
     { "default", "604" },
902636
+#endif
902636
     { NULL, NULL }
902636
 };
902636
diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c
902636
index 7e92fb2e15..be718220d7 100644
902636
--- a/target/s390x/cpu_models.c
902636
+++ b/target/s390x/cpu_models.c
902636
@@ -404,6 +404,9 @@ static void check_unavailable_features(const S390CPUModel *max_model,
902636
         (max_model->def->gen == model->def->gen &&
902636
          max_model->def->ec_ga < model->def->ec_ga)) {
902636
         list_add_feat("type", unavailable);
902636
+    } else if (model->def->gen < 11 && kvm_enabled()) {
902636
+        /* Older CPU models are not supported on Red Hat Enterprise Linux */
902636
+        list_add_feat("type", unavailable);
902636
     }
902636
 
902636
     /* detect missing features if any to properly report them */
902636
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
902636
index 0c9d14b4b1..a02d569537 100644
902636
--- a/target/s390x/kvm.c
902636
+++ b/target/s390x/kvm.c
902636
@@ -2387,6 +2387,14 @@ void kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp)
902636
         error_setg(errp, "KVM doesn't support CPU models");
902636
         return;
902636
     }
902636
+
902636
+    /* Older CPU models are not supported on Red Hat Enterprise Linux */
902636
+    if (model->def->gen < 11) {
902636
+        error_setg(errp, "KVM: Unsupported CPU type specified: %s",
902636
+                   MACHINE(qdev_get_machine())->cpu_type);
902636
+        return;
902636
+    }
902636
+
902636
     prop.cpuid = s390_cpuid_from_cpu_model(model);
902636
     prop.ibc = s390_ibc_from_cpu_model(model);
902636
     /* configure cpu features indicated via STFL(e) */
902636
diff --git a/util/memfd.c b/util/memfd.c
902636
index 4a3c07e0be..3303ec9da4 100644
902636
--- a/util/memfd.c
902636
+++ b/util/memfd.c
902636
@@ -193,7 +193,7 @@ bool qemu_memfd_alloc_check(void)
902636
  */
902636
 bool qemu_memfd_check(unsigned int flags)
902636
 {
902636
-#ifdef CONFIG_LINUX
902636
+#if 0 /* RHEL: memfd support disabled */
902636
     int mfd = memfd_create("test", flags | MFD_CLOEXEC);
902636
 
902636
     if (mfd >= 0) {
902636
diff --git a/vl.c b/vl.c
902636
index 6a65a64bfd..668a34577e 100644
902636
--- a/vl.c
902636
+++ b/vl.c
902636
@@ -166,7 +166,7 @@ Chardev *parallel_hds[MAX_PARALLEL_PORTS];
902636
 int win2k_install_hack = 0;
902636
 int singlestep = 0;
902636
 int acpi_enabled = 1;
902636
-int no_hpet = 0;
902636
+int no_hpet = 1; /* Always disabled for Red Hat Enterprise Linux */
902636
 int fd_bootchk = 1;
902636
 static int no_reboot;
902636
 int no_shutdown = 0;
902636
@@ -914,6 +914,7 @@ static void configure_rtc(QemuOpts *opts)
902636
     }
902636
 }
902636
 
902636
+#if 0 // Disabled for Red Hat Enterprise Linux
902636
 /***********************************************************/
902636
 /* Bluetooth support */
902636
 static int nb_hcis;
902636
@@ -1035,6 +1036,7 @@ static int bt_parse(const char *opt)
902636
     error_report("bad bluetooth parameter '%s'", opt);
902636
     return 1;
902636
 }
902636
+#endif
902636
 
902636
 static int parse_name(void *opaque, QemuOpts *opts, Error **errp)
902636
 {
902636
@@ -3128,6 +3130,7 @@ int main(int argc, char **argv, char **envp)
902636
                 }
902636
                 break;
902636
 #endif
902636
+#if 0 /* Disabled for Red Hat Enterprise Linux */
902636
             case QEMU_OPTION_bt:
902636
                 warn_report("The bluetooth subsystem is deprecated and will "
902636
                             "be removed soon. If the bluetooth subsystem is "
902636
@@ -3135,6 +3138,7 @@ int main(int argc, char **argv, char **envp)
902636
                             "qemu-devel@nongnu.org with your usecase.");
902636
                 add_device_config(DEV_BT, optarg);
902636
                 break;
902636
+#endif
902636
             case QEMU_OPTION_audio_help:
902636
                 audio_legacy_help();
902636
                 exit (0);
902636
@@ -4282,9 +4286,11 @@ int main(int argc, char **argv, char **envp)
902636
 
902636
     tpm_init();
902636
 
902636
+#if 0 // Disabled for Red Hat Enterprise Linux
902636
     /* init the bluetooth world */
902636
     if (foreach_device_config(DEV_BT, bt_parse))
902636
         exit(1);
902636
+#endif
902636
 
902636
     if (!xen_enabled()) {
902636
         /* On 32-bit hosts, QEMU is limited by virtual address space */
902636
-- 
902636
2.21.0
902636