yeahuh / rpms / qemu-kvm

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