qemu-kvm/0005-Enable-disable-devices-for-RHEL.patch

1101 lines
36 KiB
Diff
Raw Normal View History

2018-12-13 12:54:47 +00:00
From 0533a6ee98fedfad9ca1466f5e6f5576169ed808 Mon Sep 17 00:00:00 2001
2018-10-14 17:48:54 +00:00
From: Miroslav Rezanina <mrezanin@redhat.com>
Date: Mon, 11 Jan 2016 11:53:33 +0100
2018-11-29 12:09:34 +00:00
Subject: Enable/disable devices for RHEL
2018-10-14 17:48:54 +00:00
2018-11-29 12:09:34 +00:00
This commit adds all changes related to changes in supported devices.
2018-10-14 17:48:54 +00:00
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
2018-11-29 12:09:34 +00:00
Rebase notes (qemu 3.1.0)
- spapr_rng disabled in default_config
- new hyperv.mak in default configs
- Move changes from x86_64-softmmu.mak to i386-softmmu.mak
- Added CONFIG_VIRTIO_MMIO to aarch64-softmmu.mak
2018-12-13 12:54:47 +00:00
- Removed config_vga_isa.c changes as no longer needed
- Removed new devices
Merged patches (qemu 3.1.0):
- d51e082 Re-enable CONFIG_HYPERV_TESTDEV
- 4b889f3 Declare cirrus-vga as deprecated
- b579d32 Do not build bluetooth support
- 3eef52a Disable CONFIG_IPMI and CONFIG_I2C for ppc64
- 9caf292 Disable CONFIG_CAN_BUS and CONFIG_CAN_SJA1000
2018-10-14 17:48:54 +00:00
---
2018-12-13 12:54:47 +00:00
Makefile.objs | 4 ++--
default-configs/aarch64-softmmu.mak | 40 ++++++++++++++++++++++++---------
default-configs/i386-softmmu.mak | 26 +++++++++++-----------
default-configs/pci.mak | 44 ++++++++++++++++++-------------------
default-configs/ppc64-softmmu.mak | 30 ++++++++++++++++++-------
2018-10-14 17:48:54 +00:00
default-configs/s390x-softmmu.mak | 5 +++--
2018-12-13 12:54:47 +00:00
default-configs/sound.mak | 8 +++----
default-configs/usb.mak | 14 ++++++------
default-configs/virtio.mak | 6 ++---
2018-10-14 17:48:54 +00:00
hw/acpi/ich9.c | 4 ++--
hw/arm/Makefile.objs | 2 +-
hw/block/fdc.c | 1 +
2018-12-13 12:54:47 +00:00
hw/bt/Makefile.objs | 4 ++--
2018-10-14 17:48:54 +00:00
hw/char/serial-pci.c | 4 ++++
2018-12-13 12:54:47 +00:00
hw/core/Makefile.objs | 10 +++++----
hw/display/Makefile.objs | 5 +++--
hw/display/cirrus_vga.c | 3 +++
2018-10-14 17:48:54 +00:00
hw/i386/pc.c | 2 ++
hw/ide/piix.c | 5 ++++-
hw/ide/via.c | 2 ++
hw/input/pckbd.c | 2 ++
hw/isa/Makefile.objs | 2 +-
hw/misc/Makefile.objs | 2 +-
2018-11-29 12:09:34 +00:00
hw/misc/ivshmem.c | 11 ++++++++++
2018-10-14 17:48:54 +00:00
hw/net/e1000.c | 2 ++
hw/pci-host/piix.c | 4 ++++
hw/ppc/spapr_cpu_core.c | 2 ++
hw/usb/ccid-card-emulated.c | 2 ++
2018-12-13 12:54:47 +00:00
hw/vfio/Makefile.objs | 2 +-
2018-10-14 17:48:54 +00:00
hw/vfio/pci-quirks.c | 5 +++++
2018-12-13 12:54:47 +00:00
hw/vfio/pci.c | 5 +++++
hw/virtio/virtio-pci.c | 8 +++----
qemu-options.hx | 7 ++----
2018-10-14 17:48:54 +00:00
redhat/qemu-kvm.spec.template | 2 +-
stubs/Makefile.objs | 1 +
2018-12-13 12:54:47 +00:00
stubs/ide-isa.c | 13 +++++++++++
2018-10-14 17:48:54 +00:00
target/arm/cpu.c | 4 +++-
2018-12-13 12:54:47 +00:00
target/i386/cpu.c | 35 ++++++++++++++++++++++-------
target/ppc/cpu-models.c | 12 ++++++++++
2018-10-14 17:48:54 +00:00
target/s390x/cpu_models.c | 3 +++
2018-12-13 12:54:47 +00:00
target/s390x/kvm.c | 8 +++++++
vl.c | 8 ++++++-
42 files changed, 253 insertions(+), 106 deletions(-)
2018-10-14 17:48:54 +00:00
create mode 100644 stubs/ide-isa.c
2018-12-13 12:54:47 +00:00
diff --git a/Makefile.objs b/Makefile.objs
index 1e1ff38..26d578e 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -115,8 +115,8 @@ common-obj-y += replay/
common-obj-y += ui/
common-obj-m += ui/
-common-obj-y += bt-host.o bt-vhci.o
-bt-host.o-cflags := $(BLUEZ_CFLAGS)
+#common-obj-y += bt-host.o bt-vhci.o
+#bt-host.o-cflags := $(BLUEZ_CFLAGS)
common-obj-y += dma-helpers.o
common-obj-y += vl.o
2018-10-14 17:48:54 +00:00
diff --git a/default-configs/aarch64-softmmu.mak b/default-configs/aarch64-softmmu.mak
2018-11-29 12:09:34 +00:00
index 4ea9add..221e266 100644
2018-10-14 17:48:54 +00:00
--- a/default-configs/aarch64-softmmu.mak
+++ b/default-configs/aarch64-softmmu.mak
2018-11-29 12:09:34 +00:00
@@ -1,12 +1,32 @@
2018-10-14 17:48:54 +00:00
# Default configuration for aarch64-softmmu
2018-11-29 12:09:34 +00:00
-
2018-10-14 17:48:54 +00:00
-# We support all the 32 bit boards so need all their config
-include arm-softmmu.mak
-
-CONFIG_AUX=y
-CONFIG_DDC=y
-CONFIG_DPCD=y
-CONFIG_XLNX_ZYNQMP=y
-CONFIG_XLNX_ZYNQMP_ARM=y
2018-11-29 12:09:34 +00:00
-CONFIG_XLNX_VERSAL=y
2018-10-14 17:48:54 +00:00
+# CONFIG_AUX=y
+# CONFIG_DDC=y
+# CONFIG_DPCD=y
+# CONFIG_XLNX_ZYNQMP=y
+# CONFIG_XLNX_ZYNQMP_ARM=y
2018-11-29 12:09:34 +00:00
+# CONFIG_XLNX_VERSAL=y
CONFIG_ARM_SMMUV3=y
2018-10-14 17:48:54 +00:00
+CONFIG_PCI=y
+CONFIG_PCI_TESTDEV=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_VIRTIO_MMIO=y
+include virtio.mak
+CONFIG_ARM_GIC=y
+CONFIG_ARM_GIC_KVM=$(CONFIG_KVM)
+CONFIG_PL011=y
+CONFIG_PL031=y
+CONFIG_PFLASH_CFI01=y
+CONFIG_PCI_GENERIC=y
+CONFIG_ACPI=y
+CONFIG_PLATFORM_BUS=y
+CONFIG_SMBIOS=y
+CONFIG_PL061=y
+CONFIG_GPIO_KEY=y
+CONFIG_ARM_V7M=y
+CONFIG_PCIE_PORT=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_USB_XHCI=y
+CONFIG_USB=y
+CONFIG_I2C=y
+CONFIG_FW_CFG_DMA=y
2018-11-29 12:09:34 +00:00
diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
index 64c998c..faea212 100644
--- a/default-configs/i386-softmmu.mak
+++ b/default-configs/i386-softmmu.mak
@@ -5,20 +5,20 @@ include sound.mak
include usb.mak
include hyperv.mak
CONFIG_QXL=$(CONFIG_SPICE)
-CONFIG_VGA_ISA=y
+#CONFIG_VGA_ISA=y
CONFIG_VGA_CIRRUS=y
-CONFIG_VMWARE_VGA=y
-CONFIG_VMXNET3_PCI=y
+#CONFIG_VMWARE_VGA=y
+#CONFIG_VMXNET3_PCI=y
CONFIG_VIRTIO_VGA=y
CONFIG_VMMOUSE=y
CONFIG_IPMI=y
-CONFIG_IPMI_LOCAL=y
-CONFIG_IPMI_EXTERN=y
-CONFIG_ISA_IPMI_KCS=y
-CONFIG_ISA_IPMI_BT=y
+#CONFIG_IPMI_LOCAL=y
+#CONFIG_IPMI_EXTERN=y
+#CONFIG_ISA_IPMI_KCS=y
+#CONFIG_ISA_IPMI_BT=y
CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=y
-CONFIG_PARALLEL=y
+#CONFIG_PARALLEL=y
CONFIG_I8254=y
CONFIG_PCSPK=y
CONFIG_PCKBD=y
@@ -30,11 +30,11 @@ CONFIG_ACPI_MEMORY_HOTPLUG=y
CONFIG_ACPI_CPU_HOTPLUG=y
CONFIG_APM=y
CONFIG_I8257=y
-CONFIG_IDE_ISA=y
+#CONFIG_IDE_ISA=y
CONFIG_IDE_PIIX=y
-CONFIG_NE2000_ISA=y
-CONFIG_HPET=y
-CONFIG_APPLESMC=y
+#CONFIG_NE2000_ISA=y
+#CONFIG_HPET=y
+#CONFIG_APPLESMC=y
CONFIG_I8259=y
CONFIG_PFLASH_CFI01=y
CONFIG_TPM_TIS=$(CONFIG_TPM)
@@ -66,4 +66,4 @@ CONFIG_FW_CFG_DMA=y
CONFIG_I2C=y
CONFIG_SEV=$(CONFIG_KVM)
CONFIG_VTD=y
-CONFIG_AMD_IOMMU=y
+#CONFIG_AMD_IOMMU=y
2018-10-14 17:48:54 +00:00
diff --git a/default-configs/pci.mak b/default-configs/pci.mak
2018-12-13 12:54:47 +00:00
index 6c7be12..5929b5d 100644
2018-10-14 17:48:54 +00:00
--- a/default-configs/pci.mak
+++ b/default-configs/pci.mak
@@ -4,22 +4,22 @@ CONFIG_ISA_BUS=y
CONFIG_VIRTIO_PCI=y
include virtio.mak
CONFIG_USB_UHCI=y
-CONFIG_USB_OHCI=y
+#CONFIG_USB_OHCI=y
CONFIG_USB_EHCI=y
CONFIG_USB_XHCI=y
CONFIG_USB_XHCI_NEC=y
-CONFIG_NE2000_PCI=y
-CONFIG_EEPRO100_PCI=y
-CONFIG_PCNET_PCI=y
-CONFIG_PCNET_COMMON=y
+#CONFIG_NE2000_PCI=y
+#CONFIG_EEPRO100_PCI=y
+#CONFIG_PCNET_PCI=y
+#CONFIG_PCNET_COMMON=y
CONFIG_AC97=y
CONFIG_HDA=y
-CONFIG_ES1370=y
+#CONFIG_ES1370=y
CONFIG_SCSI=y
-CONFIG_LSI_SCSI_PCI=y
-CONFIG_VMW_PVSCSI_SCSI_PCI=y
-CONFIG_MEGASAS_SCSI_PCI=y
-CONFIG_MPTSAS_SCSI_PCI=y
+#CONFIG_LSI_SCSI_PCI=y
+#CONFIG_VMW_PVSCSI_SCSI_PCI=y
+#CONFIG_MEGASAS_SCSI_PCI=y
+#CONFIG_MPTSAS_SCSI_PCI=y
CONFIG_RTL8139_PCI=y
CONFIG_E1000_PCI=y
CONFIG_E1000E_PCI=y
2018-11-29 12:09:34 +00:00
@@ -27,23 +27,23 @@ CONFIG_IDE_CORE=y
2018-10-14 17:48:54 +00:00
CONFIG_IDE_QDEV=y
CONFIG_IDE_PCI=y
CONFIG_AHCI=y
-CONFIG_ESP=y
-CONFIG_ESP_PCI=y
+#CONFIG_ESP=y
+#CONFIG_ESP_PCI=y
CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=y
CONFIG_SERIAL_PCI=y
2018-12-13 12:54:47 +00:00
-CONFIG_CAN_BUS=y
-CONFIG_CAN_SJA1000=y
2018-10-14 17:48:54 +00:00
-CONFIG_CAN_PCI=y
-CONFIG_IPACK=y
2018-12-13 12:54:47 +00:00
+#CONFIG_CAN_BUS=y
+#CONFIG_CAN_SJA1000=y
2018-10-14 17:48:54 +00:00
+#CONFIG_CAN_PCI=y
+#CONFIG_IPACK=y
CONFIG_WDT_IB6300ESB=y
CONFIG_PCI_TESTDEV=y
-CONFIG_NVME_PCI=y
-CONFIG_SD=y
-CONFIG_SDHCI=y
+#CONFIG_NVME_PCI=y
+#CONFIG_SD=y
+#CONFIG_SDHCI=y
CONFIG_EDU=y
CONFIG_VGA=y
CONFIG_VGA_PCI=y
2018-12-13 12:54:47 +00:00
-CONFIG_BOCHS_DISPLAY=y
2018-11-08 17:02:33 +00:00
-CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM)
2018-10-14 17:48:54 +00:00
-CONFIG_ROCKER=y
2018-12-13 12:54:47 +00:00
+#CONFIG_BOCHS_DISPLAY=y
2018-11-08 17:02:33 +00:00
+#CONFIG_IVSHMEM_DEVICE=$(CONFIG_IVSHMEM)
2018-10-14 17:48:54 +00:00
+#CONFIG_ROCKER=y
diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak
2018-12-13 12:54:47 +00:00
index aec2855..242d277 100644
2018-10-14 17:48:54 +00:00
--- a/default-configs/ppc64-softmmu.mak
+++ b/default-configs/ppc64-softmmu.mak
2018-11-29 12:09:34 +00:00
@@ -1,14 +1,28 @@
2018-10-14 17:48:54 +00:00
# Default configuration for ppc64-softmmu
-# Include all 32-bit boards
-include ppc-softmmu.mak
2018-11-29 12:09:34 +00:00
+include sound.mak
2018-10-14 17:48:54 +00:00
+include usb.mak
+include virtio.mak
+
+## PCI configuration - cut down from the defaults in pci.mak
+CONFIG_PCI=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_USB_XHCI=y
+CONFIG_USB_XHCI_NEC=y
+CONFIG_WDT_IB6300ESB=y
+CONFIG_PCI_TESTDEV=y
+CONFIG_USB_OHCI=y
+CONFIG_VGA=y
+CONFIG_VGA_PCI=y
+CONFIG_SERIAL=y
2018-12-13 12:54:47 +00:00
+#CONFIG_I2C=y
2018-10-14 17:48:54 +00:00
# For PowerNV
-CONFIG_POWERNV=y
2018-12-13 12:54:47 +00:00
-CONFIG_IPMI=y
2018-10-14 17:48:54 +00:00
-CONFIG_IPMI_LOCAL=y
-CONFIG_IPMI_EXTERN=y
-CONFIG_ISA_IPMI_BT=y
2018-12-13 12:54:47 +00:00
+#CONFIG_POWERNV=y
+#CONFIG_IPMI=y
2018-10-14 17:48:54 +00:00
+#CONFIG_IPMI_LOCAL=y
+#CONFIG_IPMI_EXTERN=y
+#CONFIG_ISA_IPMI_BT=y
# For pSeries
CONFIG_PSERIES=y
2018-11-29 12:09:34 +00:00
@@ -18,4 +32,4 @@ CONFIG_XICS_SPAPR=$(CONFIG_PSERIES)
CONFIG_XICS_KVM=$(call land,$(CONFIG_PSERIES),$(CONFIG_KVM))
CONFIG_MEM_DEVICE=y
CONFIG_DIMM=y
-CONFIG_SPAPR_RNG=y
+#CONFIG_SPAPR_RNG=y
2018-10-14 17:48:54 +00:00
diff --git a/default-configs/s390x-softmmu.mak b/default-configs/s390x-softmmu.mak
2018-11-29 12:09:34 +00:00
index 5eef375..49a59fc 100644
2018-10-14 17:48:54 +00:00
--- a/default-configs/s390x-softmmu.mak
+++ b/default-configs/s390x-softmmu.mak
2018-11-29 12:09:34 +00:00
@@ -1,10 +1,11 @@
2018-10-14 17:48:54 +00:00
CONFIG_PCI=y
-CONFIG_VIRTIO_PCI=$(CONFIG_PCI)
+#CONFIG_VIRTIO_PCI=$(CONFIG_PCI)
include virtio.mak
CONFIG_SCLPCONSOLE=y
CONFIG_TERMINAL3270=y
CONFIG_S390_FLIC=y
CONFIG_S390_FLIC_KVM=$(CONFIG_KVM)
-CONFIG_VFIO_CCW=$(CONFIG_LINUX)
+# Disabled for Red Hat Enterprise Linux:
+# CONFIG_VFIO_CCW=$(CONFIG_LINUX)
CONFIG_WDT_DIAG288=y
2018-11-29 12:09:34 +00:00
CONFIG_VFIO_AP=$(CONFIG_LINUX)
2018-10-14 17:48:54 +00:00
diff --git a/default-configs/sound.mak b/default-configs/sound.mak
index 4f22c34..1bead9b 100644
--- a/default-configs/sound.mak
+++ b/default-configs/sound.mak
@@ -1,4 +1,4 @@
-CONFIG_SB16=y
-CONFIG_ADLIB=y
-CONFIG_GUS=y
-CONFIG_CS4231A=y
+#CONFIG_SB16=y
+#CONFIG_ADLIB=y
+#CONFIG_GUS=y
+#CONFIG_CS4231A=y
diff --git a/default-configs/usb.mak b/default-configs/usb.mak
index e42cfea..cef6c0b 100644
--- a/default-configs/usb.mak
+++ b/default-configs/usb.mak
@@ -1,11 +1,11 @@
CONFIG_USB=y
-CONFIG_USB_TABLET_WACOM=y
+#CONFIG_USB_TABLET_WACOM=y
CONFIG_USB_STORAGE_BOT=y
-CONFIG_USB_STORAGE_UAS=y
-CONFIG_USB_STORAGE_MTP=y
+#CONFIG_USB_STORAGE_UAS=y
+#CONFIG_USB_STORAGE_MTP=y
CONFIG_SCSI=y
CONFIG_USB_SMARTCARD=y
-CONFIG_USB_AUDIO=y
-CONFIG_USB_SERIAL=y
-CONFIG_USB_NETWORK=y
-CONFIG_USB_BLUETOOTH=y
+#CONFIG_USB_AUDIO=y
+#CONFIG_USB_SERIAL=y
+#CONFIG_USB_NETWORK=y
+#CONFIG_USB_BLUETOOTH=y
diff --git a/default-configs/virtio.mak b/default-configs/virtio.mak
2018-12-13 12:54:47 +00:00
index 1304849..b4f4743 100644
2018-10-14 17:48:54 +00:00
--- a/default-configs/virtio.mak
+++ b/default-configs/virtio.mak
2018-12-13 12:54:47 +00:00
@@ -1,10 +1,10 @@
2018-10-14 17:48:54 +00:00
-CONFIG_VHOST_USER_SCSI=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))
-CONFIG_VHOST_USER_BLK=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))
+#CONFIG_VHOST_USER_SCSI=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))
+#CONFIG_VHOST_USER_BLK=$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX))
CONFIG_VIRTIO=y
CONFIG_VIRTIO_9P=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_BLK=y
-CONFIG_VIRTIO_CRYPTO=y
2018-12-13 12:54:47 +00:00
+#CONFIG_VIRTIO_CRYPTO=y
2018-10-14 17:48:54 +00:00
CONFIG_VIRTIO_GPU=y
CONFIG_VIRTIO_INPUT=y
CONFIG_VIRTIO_NET=y
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
index c5d8646..a4e87b8 100644
--- a/hw/acpi/ich9.c
+++ b/hw/acpi/ich9.c
@@ -446,8 +446,8 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs *pm, Error **errp)
static const uint32_t gpe0_len = ICH9_PMIO_GPE0_LEN;
pm->acpi_memory_hotplug.is_enabled = true;
pm->cpu_hotplug_legacy = true;
- pm->disable_s3 = 0;
- pm->disable_s4 = 0;
+ pm->disable_s3 = 1;
+ pm->disable_s4 = 1;
pm->s4_val = 2;
object_property_add_uint32_ptr(obj, ACPI_PM_PROP_PM_IO_BASE,
diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs
2018-11-29 12:09:34 +00:00
index 50c7b4a..149848e 100644
2018-10-14 17:48:54 +00:00
--- a/hw/arm/Makefile.objs
+++ b/hw/arm/Makefile.objs
@@ -16,7 +16,7 @@ obj-$(CONFIG_STRONGARM) += collie.o
obj-$(CONFIG_VERSATILE) += vexpress.o versatilepb.o
obj-$(CONFIG_ZYNQ) += xilinx_zynq.o
-obj-$(CONFIG_ARM_V7M) += armv7m.o
+#obj-$(CONFIG_ARM_V7M) += armv7m.o
obj-$(CONFIG_EXYNOS4) += exynos4210.o
obj-$(CONFIG_PXA2XX) += pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o
obj-$(CONFIG_DIGIC) += digic.o
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
2018-11-29 12:09:34 +00:00
index 6f19f12..56b7aeb 100644
2018-10-14 17:48:54 +00:00
--- a/hw/block/fdc.c
+++ b/hw/block/fdc.c
@@ -599,6 +599,7 @@ static void floppy_drive_class_init(ObjectClass *klass, void *data)
k->bus_type = TYPE_FLOPPY_BUS;
k->props = floppy_drive_properties;
k->desc = "virtual floppy drive";
+ k->user_creatable = false; /* RH state preserve */
}
static const TypeInfo floppy_drive_info = {
2018-12-13 12:54:47 +00:00
diff --git a/hw/bt/Makefile.objs b/hw/bt/Makefile.objs
index 867a7d2..e678e9e 100644
--- a/hw/bt/Makefile.objs
+++ b/hw/bt/Makefile.objs
@@ -1,3 +1,3 @@
-common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
-common-obj-y += hci-csr.o
+#common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
+#common-obj-y += hci-csr.o
2018-10-14 17:48:54 +00:00
diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
index cb0d04c..d426982 100644
--- a/hw/char/serial-pci.c
+++ b/hw/char/serial-pci.c
@@ -228,6 +228,8 @@ static void multi_2x_serial_pci_class_initfn(ObjectClass *klass, void *data)
dc->vmsd = &vmstate_pci_multi_serial;
dc->props = multi_2x_serial_pci_properties;
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static void multi_4x_serial_pci_class_initfn(ObjectClass *klass, void *data)
@@ -243,6 +245,8 @@ static void multi_4x_serial_pci_class_initfn(ObjectClass *klass, void *data)
dc->vmsd = &vmstate_pci_multi_serial;
dc->props = multi_4x_serial_pci_properties;
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo serial_pci_info = {
diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs
2018-11-29 12:09:34 +00:00
index a799c83..1c7ba0b 100644
2018-10-14 17:48:54 +00:00
--- a/hw/core/Makefile.objs
+++ b/hw/core/Makefile.objs
2018-11-29 12:09:34 +00:00
@@ -16,9 +16,11 @@ common-obj-$(CONFIG_SOFTMMU) += machine.o
2018-10-14 17:48:54 +00:00
common-obj-$(CONFIG_SOFTMMU) += loader.o
common-obj-$(CONFIG_FITLOADER) += loader-fit.o
common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o
-common-obj-$(CONFIG_SOFTMMU) += register.o
-common-obj-$(CONFIG_SOFTMMU) += or-irq.o
-common-obj-$(CONFIG_SOFTMMU) += split-irq.o
+# Disabled in Red Hat Enterprise Linux
2018-11-29 12:09:34 +00:00
+#common-obj-$(CONFIG_SOFTMMU) += register.o
+#obj-$(CONFIG_SOFTMMU) += generic-loader.o
+#common-obj-$(CONFIG_SOFTMMU) += or-irq.o
2018-10-14 17:48:54 +00:00
+#common-obj-$(CONFIG_SOFTMMU) += split-irq.o
common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o
2018-11-29 12:09:34 +00:00
-common-obj-$(CONFIG_SOFTMMU) += generic-loader.o
+#common-obj-$(CONFIG_SOFTMMU) += generic-loader.o
common-obj-$(CONFIG_SOFTMMU) += null-machine.o
2018-12-13 12:54:47 +00:00
diff --git a/hw/display/Makefile.objs b/hw/display/Makefile.objs
index 97acd5b..e39b87c 100644
--- a/hw/display/Makefile.objs
+++ b/hw/display/Makefile.objs
@@ -1,7 +1,8 @@
common-obj-y += edid-generate.o
2018-10-14 17:48:54 +00:00
2018-12-13 12:54:47 +00:00
-common-obj-$(CONFIG_FW_CFG_DMA) += ramfb.o
-common-obj-$(CONFIG_FW_CFG_DMA) += ramfb-standalone.o
+# Disabled for Red Hat Enterprise Linux
+#common-obj-$(CONFIG_FW_CFG_DMA) += ramfb.o
+#common-obj-$(CONFIG_FW_CFG_DMA) += ramfb-standalone.o
common-obj-$(CONFIG_ADS7846) += ads7846.o
common-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
index a0e7146..058a8e0 100644
--- a/hw/display/cirrus_vga.c
+++ b/hw/display/cirrus_vga.c
@@ -2967,6 +2967,9 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(dev);
int16_t device_id = pc->device_id;
+ warn_report("'cirrus-vga' is deprecated, "
+ "please use a different VGA card instead");
+
/* follow real hardware, cirrus card emulated has 4 MB video memory.
Also accept 8 MB/16 MB for backward compatibility. */
if (s->vga.vram_size_mb != 4 && s->vga.vram_size_mb != 8 &&
2018-10-14 17:48:54 +00:00
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
2018-11-29 12:09:34 +00:00
index f095725..567439e 100644
2018-10-14 17:48:54 +00:00
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
2018-11-29 12:09:34 +00:00
@@ -1533,7 +1533,9 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl, bool no_vmport)
2018-10-14 17:48:54 +00:00
ISADevice *i8042, *port92, *vmmouse;
serial_hds_isa_init(isa_bus, 0, MAX_ISA_SERIAL_PORTS);
+#if 0 /* Disabled for Red Hat Enterprise Linux */
parallel_hds_isa_init(isa_bus, MAX_PARALLEL_PORTS);
+#endif
for (i = 0; i < MAX_FD; i++) {
fd[i] = drive_get(IF_FLOPPY, 0, i);
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index a3afe1f..6de12ca 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -253,7 +253,8 @@ static void piix3_ide_class_init(ObjectClass *klass, void *data)
k->device_id = PCI_DEVICE_ID_INTEL_82371SB_1;
k->class_id = PCI_CLASS_STORAGE_IDE;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
- dc->hotpluggable = false;
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo piix3_ide_info = {
@@ -280,6 +281,8 @@ static void piix4_ide_class_init(ObjectClass *klass, void *data)
k->class_id = PCI_CLASS_STORAGE_IDE;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
dc->hotpluggable = false;
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo piix4_ide_info = {
diff --git a/hw/ide/via.c b/hw/ide/via.c
index 238f038..e4a5e6d 100644
--- a/hw/ide/via.c
+++ b/hw/ide/via.c
@@ -216,6 +216,8 @@ static void via_ide_class_init(ObjectClass *klass, void *data)
k->revision = 0x06;
k->class_id = PCI_CLASS_STORAGE_IDE;
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo via_ide_info = {
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
index 07c8801..c27a0f8 100644
--- a/hw/input/pckbd.c
+++ b/hw/input/pckbd.c
@@ -574,6 +574,8 @@ static void i8042_class_initfn(ObjectClass *klass, void *data)
dc->realize = i8042_realizefn;
dc->vmsd = &vmstate_kbd_isa;
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo i8042_info = {
diff --git a/hw/isa/Makefile.objs b/hw/isa/Makefile.objs
2018-11-29 12:09:34 +00:00
index 9e106df..0828964 100644
2018-10-14 17:48:54 +00:00
--- a/hw/isa/Makefile.objs
+++ b/hw/isa/Makefile.objs
@@ -1,5 +1,5 @@
common-obj-$(CONFIG_ISA_BUS) += isa-bus.o
2018-11-29 12:09:34 +00:00
-common-obj-$(CONFIG_ISA_BUS) += isa-superio.o
+#common-obj-$(CONFIG_ISA_BUS) += isa-superio.o
2018-10-14 17:48:54 +00:00
common-obj-$(CONFIG_APM) += apm.o
common-obj-$(CONFIG_I82378) += i82378.o
common-obj-$(CONFIG_PC87312) += pc87312.o
diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs
2018-11-29 12:09:34 +00:00
index 680350b..ed543a6 100644
2018-10-14 17:48:54 +00:00
--- a/hw/misc/Makefile.objs
+++ b/hw/misc/Makefile.objs
@@ -9,7 +9,7 @@ common-obj-$(CONFIG_PCI_TESTDEV) += pci-testdev.o
common-obj-$(CONFIG_EDU) += edu.o
common-obj-$(CONFIG_PCA9552) += pca9552.o
-common-obj-y += unimp.o
+#common-obj-y += unimp.o
common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o
# ARM devices
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c
2018-11-29 12:09:34 +00:00
index ecfd10a..8059563 100644
2018-10-14 17:48:54 +00:00
--- a/hw/misc/ivshmem.c
+++ b/hw/misc/ivshmem.c
@@ -893,6 +893,13 @@ static void ivshmem_common_realize(PCIDevice *dev, Error **errp)
return;
}
+ /* Migration disabled for Red Hat Enterprise Linux: */
+ if (s->master == ON_OFF_AUTO_ON) {
+ error_setg(errp, "master=on is not supported");
+ return;
+ }
+ s->master = ON_OFF_AUTO_OFF;
+
pci_conf = dev->config;
pci_conf[PCI_COMMAND] = PCI_COMMAND_IO | PCI_COMMAND_MEMORY;
2018-11-29 12:09:34 +00:00
@@ -1179,6 +1186,8 @@ static void ivshmem_doorbell_class_init(ObjectClass *klass, void *data)
2018-10-14 17:48:54 +00:00
k->realize = ivshmem_doorbell_realize;
dc->props = ivshmem_doorbell_properties;
dc->vmsd = &ivshmem_doorbell_vmsd;
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo ivshmem_doorbell_info = {
2018-11-29 12:09:34 +00:00
@@ -1349,6 +1358,8 @@ static void ivshmem_class_init(ObjectClass *klass, void *data)
2018-10-14 17:48:54 +00:00
dc->desc = "Inter-VM shared memory (legacy)";
dc->props = ivshmem_properties;
dc->vmsd = &ivshmem_vmsd;
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo ivshmem_info = {
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
2018-11-29 12:09:34 +00:00
index 5e144cb..2e07880 100644
2018-10-14 17:48:54 +00:00
--- a/hw/net/e1000.c
+++ b/hw/net/e1000.c
2018-11-29 12:09:34 +00:00
@@ -1778,6 +1778,7 @@ static const E1000Info e1000_devices[] = {
2018-10-14 17:48:54 +00:00
.revision = 0x03,
.phy_id2 = E1000_PHY_ID2_8254xx_DEFAULT,
},
+#if 0 /* Disabled for Red Hat Enterprise Linux 7 */
{
.name = "e1000-82544gc",
.device_id = E1000_DEV_ID_82544GC_COPPER,
2018-11-29 12:09:34 +00:00
@@ -1790,6 +1791,7 @@ static const E1000Info e1000_devices[] = {
2018-10-14 17:48:54 +00:00
.revision = 0x03,
.phy_id2 = E1000_PHY_ID2_8254xx_DEFAULT,
},
+#endif
};
static void e1000_register_types(void)
diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
2018-11-29 12:09:34 +00:00
index d9c70f7..f294fbc 100644
2018-10-14 17:48:54 +00:00
--- a/hw/pci-host/piix.c
+++ b/hw/pci-host/piix.c
2018-11-29 12:09:34 +00:00
@@ -801,6 +801,7 @@ static const TypeInfo i440fx_info = {
2018-10-14 17:48:54 +00:00
},
};
+#if 0 /* Disabled in Red Hat Enterprise Linux */
/* IGD Passthrough Host Bridge. */
typedef struct {
uint8_t offset;
2018-11-29 12:09:34 +00:00
@@ -884,6 +885,7 @@ static const TypeInfo igd_passthrough_i440fx_info = {
2018-10-14 17:48:54 +00:00
.instance_size = sizeof(PCII440FXState),
.class_init = igd_passthrough_i440fx_class_init,
};
+#endif
static const char *i440fx_pcihost_root_bus_path(PCIHostState *host_bridge,
PCIBus *rootbus)
2018-11-29 12:09:34 +00:00
@@ -929,7 +931,9 @@ static const TypeInfo i440fx_pcihost_info = {
2018-10-14 17:48:54 +00:00
static void i440fx_register_types(void)
{
type_register_static(&i440fx_info);
+#if 0 /* Disabled in Red Hat Enterprise Linux */
type_register_static(&igd_passthrough_i440fx_info);
+#endif
type_register_static(&piix3_pci_type_info);
type_register_static(&piix3_info);
type_register_static(&piix3_xen_info);
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
2018-11-29 12:09:34 +00:00
index 2398ce6..63a7bb6 100644
2018-10-14 17:48:54 +00:00
--- a/hw/ppc/spapr_cpu_core.c
+++ b/hw/ppc/spapr_cpu_core.c
2018-11-29 12:09:34 +00:00
@@ -382,10 +382,12 @@ static const TypeInfo spapr_cpu_core_type_infos[] = {
2018-10-14 17:48:54 +00:00
.instance_size = sizeof(sPAPRCPUCore),
.class_size = sizeof(sPAPRCPUCoreClass),
},
+#if 0 /* Disabled for Red Hat Enterprise Linux */
DEFINE_SPAPR_CPU_CORE_TYPE("970_v2.2"),
DEFINE_SPAPR_CPU_CORE_TYPE("970mp_v1.0"),
DEFINE_SPAPR_CPU_CORE_TYPE("970mp_v1.1"),
DEFINE_SPAPR_CPU_CORE_TYPE("power5+_v2.1"),
+#endif
DEFINE_SPAPR_CPU_CORE_TYPE("power7_v2.3"),
DEFINE_SPAPR_CPU_CORE_TYPE("power7+_v2.1"),
DEFINE_SPAPR_CPU_CORE_TYPE("power8_v2.0"),
diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c
2018-11-29 12:09:34 +00:00
index 25976ed..a793584 100644
2018-10-14 17:48:54 +00:00
--- a/hw/usb/ccid-card-emulated.c
+++ b/hw/usb/ccid-card-emulated.c
2018-11-29 12:09:34 +00:00
@@ -600,6 +600,8 @@ static void emulated_class_initfn(ObjectClass *klass, void *data)
2018-10-14 17:48:54 +00:00
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
dc->desc = "emulated smartcard";
dc->props = emulated_card_properties;
+ /* Disabled for Red Hat Enterprise Linux: */
+ dc->user_creatable = false;
}
static const TypeInfo emulated_card_info = {
diff --git a/hw/vfio/Makefile.objs b/hw/vfio/Makefile.objs
2018-12-13 12:54:47 +00:00
index 8b3f664..7e5c0ad 100644
2018-10-14 17:48:54 +00:00
--- a/hw/vfio/Makefile.objs
+++ b/hw/vfio/Makefile.objs
2018-12-13 12:54:47 +00:00
@@ -2,7 +2,7 @@ ifeq ($(CONFIG_LINUX), y)
2018-10-14 17:48:54 +00:00
obj-$(CONFIG_SOFTMMU) += common.o
obj-$(CONFIG_PCI) += pci.o pci-quirks.o display.o
obj-$(CONFIG_VFIO_CCW) += ccw.o
-obj-$(CONFIG_SOFTMMU) += platform.o
2018-12-13 12:54:47 +00:00
+#obj-$(CONFIG_SOFTMMU) += platform.o
obj-$(CONFIG_VFIO_XGMAC) += calxeda-xgmac.o
obj-$(CONFIG_VFIO_AMD_XGBE) += amd-xgbe.o
2018-10-14 17:48:54 +00:00
obj-$(CONFIG_SOFTMMU) += spapr.o
diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
2018-11-29 12:09:34 +00:00
index eae31c7..4a6e98e 100644
2018-10-14 17:48:54 +00:00
--- a/hw/vfio/pci-quirks.c
+++ b/hw/vfio/pci-quirks.c
@@ -1387,6 +1387,8 @@ static void vfio_pci_igd_lpc_bridge_class_init(ObjectClass *klass, void *data)
set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
dc->desc = "VFIO dummy ISA/LPC bridge for IGD assignment";
dc->hotpluggable = false;
+ /* Disabled in Red Hat Enterprise Linux */
+ dc->user_creatable = false;
k->realize = vfio_pci_igd_lpc_bridge_realize;
k->class_id = PCI_CLASS_BRIDGE_ISA;
}
@@ -1580,6 +1582,9 @@ static void vfio_probe_igd_bar4_quirk(VFIOPCIDevice *vdev, int nr)
0, PCI_DEVFN(0x2, 0))) {
return;
}
+
+ /* Disabled in Red Hat Enterprise Linux */
+ return;
/*
* We need to create an LPC/ISA bridge at PCI bus address 00:1f.0 that we
2018-12-13 12:54:47 +00:00
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 5c7bd96..6e0000c 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -3262,6 +3262,7 @@ static const TypeInfo vfio_pci_dev_info = {
},
};
+#if 0 /* Disabled for Red Hat Enterprise Linux */
static Property vfio_pci_dev_nohotplug_properties[] = {
DEFINE_PROP_BOOL("ramfb", VFIOPCIDevice, enable_ramfb, false),
DEFINE_PROP_END_OF_LIST(),
@@ -3281,11 +3282,15 @@ static const TypeInfo vfio_pci_nohotplug_dev_info = {
.instance_size = sizeof(VFIOPCIDevice),
.class_init = vfio_pci_nohotplug_dev_class_init,
};
+#endif
static void register_vfio_pci_dev_type(void)
{
type_register_static(&vfio_pci_dev_info);
+
+#if 0 /* Disabled for Red Hat Enterprise Linux */
type_register_static(&vfio_pci_nohotplug_dev_info);
+#endif
}
type_init(register_vfio_pci_dev_type)
2018-10-14 17:48:54 +00:00
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
2018-11-29 12:09:34 +00:00
index a954799..9a987cb 100644
2018-10-14 17:48:54 +00:00
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -2003,7 +2003,7 @@ static const TypeInfo virtio_blk_pci_info = {
.class_init = virtio_blk_pci_class_init,
};
-#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
+#if defined(CONFIG_VHOST_USER_BLK)
/* vhost-user-blk */
static Property vhost_user_blk_pci_properties[] = {
@@ -2183,7 +2183,7 @@ static const TypeInfo vhost_scsi_pci_info = {
};
#endif
-#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
+#if defined(CONFIG_VHOST_USER_BLK)
/* vhost-user-scsi-pci */
static Property vhost_user_scsi_pci_properties[] = {
DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors,
@@ -2707,7 +2707,7 @@ static void virtio_pci_register_types(void)
type_register_static(&virtio_9p_pci_info);
#endif
type_register_static(&virtio_blk_pci_info);
-#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
+#if defined(CONFIG_VHOST_USER_BLK)
type_register_static(&vhost_user_blk_pci_info);
#endif
type_register_static(&virtio_scsi_pci_info);
@@ -2717,7 +2717,7 @@ static void virtio_pci_register_types(void)
#ifdef CONFIG_VHOST_SCSI
type_register_static(&vhost_scsi_pci_info);
#endif
-#if defined(CONFIG_VHOST_USER) && defined(CONFIG_LINUX)
+#if defined(CONFIG_VHOST_USER_SCSI)
type_register_static(&vhost_user_scsi_pci_info);
#endif
#ifdef CONFIG_VHOST_VSOCK
diff --git a/qemu-options.hx b/qemu-options.hx
2018-12-13 12:54:47 +00:00
index 269eda7..5e13aa9 100644
2018-10-14 17:48:54 +00:00
--- a/qemu-options.hx
+++ b/qemu-options.hx
2018-11-29 12:09:34 +00:00
@@ -1741,11 +1741,6 @@ ETEXI
2018-10-14 17:48:54 +00:00
DEF("no-hpet", 0, QEMU_OPTION_no_hpet,
"-no-hpet disable HPET\n", QEMU_ARCH_I386)
-STEXI
-@item -no-hpet
-@findex -no-hpet
-Disable HPET support.
-ETEXI
DEF("acpitable", HAS_ARG, QEMU_OPTION_acpitable,
"-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"
2018-12-13 12:54:47 +00:00
@@ -2749,6 +2744,7 @@ STEXI
ETEXI
DEFHEADING()
+#if 0
DEFHEADING(Bluetooth(R) options:)
STEXI
@table @option
@@ -2827,6 +2823,7 @@ STEXI
@end table
ETEXI
DEFHEADING()
+#endif
#ifdef CONFIG_TPM
DEFHEADING(TPM device options:)
2018-10-14 17:48:54 +00:00
diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
2018-11-29 12:09:34 +00:00
index 5dd0aee..f27250e 100644
2018-10-14 17:48:54 +00:00
--- a/stubs/Makefile.objs
+++ b/stubs/Makefile.objs
2018-11-29 12:09:34 +00:00
@@ -44,3 +44,4 @@ stub-obj-y += xen-hvm.o
2018-10-14 17:48:54 +00:00
stub-obj-y += pci-host-piix.o
stub-obj-y += ram-block.o
2018-11-29 12:09:34 +00:00
stub-obj-y += ramfb.o
2018-10-14 17:48:54 +00:00
+stub-obj-y += ide-isa.o
diff --git a/stubs/ide-isa.c b/stubs/ide-isa.c
new file mode 100644
index 0000000..9fd50ef
--- /dev/null
+++ b/stubs/ide-isa.c
@@ -0,0 +1,13 @@
+#include "qemu/osdep.h"
+#include "hw/ide.h"
+#include <stdlib.h>
+
+ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
+ DriveInfo *hd0, DriveInfo *hd1)
+{
+ /*
+ * In theory the real isa_ide_init() function can return NULL, but no
+ * caller actually checks for that. Make sure we go out with a clear bang.
+ */
+ abort();
+}
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
2018-11-29 12:09:34 +00:00
index 60411f6..d2ac5bb 100644
2018-10-14 17:48:54 +00:00
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
2018-11-29 12:09:34 +00:00
@@ -2149,7 +2149,9 @@ static void arm_cpu_register_types(void)
2018-10-14 17:48:54 +00:00
type_register_static(&idau_interface_type_info);
while (info->name) {
- cpu_register(info);
+ /* RHEL specific: Filter out unsupported cpu models */
+ if (!strcmp(info->name, "cortex-a15"))
+ cpu_register(info);
info++;
}
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
2018-11-29 12:09:34 +00:00
index f81d35e..e9b9183 100644
2018-10-14 17:48:54 +00:00
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
2018-11-29 12:09:34 +00:00
@@ -1443,14 +1443,14 @@ static X86CPUDefinition builtin_x86_defs[] = {
2018-10-14 17:48:54 +00:00
.family = 6,
.model = 6,
.stepping = 3,
- .features[FEAT_1_EDX] =
- PPRO_FEATURES |
- CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA |
- CPUID_PSE36,
- .features[FEAT_1_ECX] =
- CPUID_EXT_SSE3 | CPUID_EXT_CX16,
- .features[FEAT_8000_0001_EDX] =
- CPUID_EXT2_LM | CPUID_EXT2_SYSCALL | CPUID_EXT2_NX,
+ .features[FEAT_1_EDX] = CPUID_SSE2 | CPUID_SSE | CPUID_FXSR |
+ CPUID_MMX | CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV |
+ CPUID_MCA | CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC |
+ CPUID_CX8 | CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC |
+ CPUID_PSE | CPUID_DE | CPUID_FP87,
+ .features[FEAT_1_ECX] = CPUID_EXT_CX16 | CPUID_EXT_SSE3,
+ .features[FEAT_8000_0001_EDX] = CPUID_EXT2_LM | CPUID_EXT2_NX |
+ CPUID_EXT2_SYSCALL,
.features[FEAT_8000_0001_ECX] =
CPUID_EXT3_LAHF_LM | CPUID_EXT3_SVM,
.xlevel = 0x8000000A,
2018-11-29 12:09:34 +00:00
@@ -1680,6 +1680,25 @@ static X86CPUDefinition builtin_x86_defs[] = {
2018-10-14 17:48:54 +00:00
.model_id = "Intel(R) Atom(TM) CPU N270 @ 1.60GHz",
},
{
+ .name = "cpu64-rhel6",
+ .level = 4,
+ .vendor = CPUID_VENDOR_AMD,
+ .family = 6,
+ .model = 13,
+ .stepping = 3,
+ .features[FEAT_1_EDX] = CPUID_SSE2 | CPUID_SSE | CPUID_FXSR |
+ CPUID_MMX | CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV |
+ CPUID_MCA | CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC |
+ CPUID_CX8 | CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC |
+ CPUID_PSE | CPUID_DE | CPUID_FP87,
+ .features[FEAT_1_ECX] = CPUID_EXT_CX16 | CPUID_EXT_SSE3,
+ .features[FEAT_8000_0001_EDX] = CPUID_EXT2_LM | CPUID_EXT2_NX | CPUID_EXT2_SYSCALL,
+ .features[FEAT_8000_0001_ECX] = CPUID_EXT3_SSE4A | CPUID_EXT3_ABM |
+ CPUID_EXT3_SVM | CPUID_EXT3_LAHF_LM,
+ .xlevel = 0x8000000A,
+ .model_id = "QEMU Virtual CPU version (cpu64-rhel6)",
+ },
+ {
.name = "Conroe",
.level = 10,
.vendor = CPUID_VENDOR_INTEL,
diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
2018-11-29 12:09:34 +00:00
index 7c75963..7f179ff 100644
2018-10-14 17:48:54 +00:00
--- a/target/ppc/cpu-models.c
+++ b/target/ppc/cpu-models.c
@@ -65,6 +65,7 @@
#define POWERPC_DEF(_name, _pvr, _type, _desc) \
POWERPC_DEF_SVR(_name, _desc, _pvr, POWERPC_SVR_NONE, _type)
+#if 0 /* Embedded and 32-bit CPUs disabled for Red Hat Enterprise Linux */
/* Embedded PowerPC */
/* PowerPC 401 family */
POWERPC_DEF("401", CPU_POWERPC_401, 401,
2018-11-29 12:09:34 +00:00
@@ -739,8 +740,10 @@
2018-10-14 17:48:54 +00:00
"PowerPC 7447A v1.2 (G4)")
POWERPC_DEF("7457a_v1.2", CPU_POWERPC_74x7A_v12, 7455,
"PowerPC 7457A v1.2 (G4)")
+#endif
/* 64 bits PowerPC */
#if defined (TARGET_PPC64)
+#if 0 /* Disabled for Red Hat Enterprise Linux */
POWERPC_DEF("970_v2.2", CPU_POWERPC_970_v22, 970,
"PowerPC 970 v2.2")
POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970,
2018-11-29 12:09:34 +00:00
@@ -757,8 +760,11 @@
2018-10-14 17:48:54 +00:00
"PowerPC 970MP v1.0")
POWERPC_DEF("970mp_v1.1", CPU_POWERPC_970MP_v11, 970,
"PowerPC 970MP v1.1")
+#endif
2018-11-29 12:09:34 +00:00
+#if 0 /* Disabled for Red Hat Enterprise Linux */
POWERPC_DEF("power5+_v2.1", CPU_POWERPC_POWER5P_v21, POWER5P,
"POWER5+ v2.1")
+#endif
POWERPC_DEF("power7_v2.3", CPU_POWERPC_POWER7_v23, POWER7,
"POWER7 v2.3")
POWERPC_DEF("power7+_v2.1", CPU_POWERPC_POWER7P_v21, POWER7,
@@ -779,6 +785,7 @@
2018-10-14 17:48:54 +00:00
/* PowerPC CPU aliases */
PowerPCCPUAlias ppc_cpu_aliases[] = {
+#if 0 /* Embedded and 32-bit CPUs disabled for Red Hat Enterprise Linux */
{ "403", "403gc" },
{ "405", "405d4" },
{ "405cr", "405crc" },
2018-11-29 12:09:34 +00:00
@@ -937,12 +944,15 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
2018-10-14 17:48:54 +00:00
{ "7447a", "7447a_v1.2" },
{ "7457a", "7457a_v1.2" },
{ "apollo7pm", "7457a_v1.0" },
+#endif
#if defined(TARGET_PPC64)
+#if 0 /* Disabled for Red Hat Enterprise Linux */
2018-11-29 12:09:34 +00:00
{ "970", "970_v2.2" },
{ "970fx", "970fx_v3.1" },
{ "970mp", "970mp_v1.1" },
2018-10-14 17:48:54 +00:00
{ "power5+", "power5+_v2.1" },
{ "power5gs", "power5+_v2.1" },
+#endif
{ "power7", "power7_v2.3" },
{ "power7+", "power7+_v2.1" },
{ "power8e", "power8e_v2.1" },
2018-11-29 12:09:34 +00:00
@@ -951,6 +961,7 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
2018-10-14 17:48:54 +00:00
{ "power9", "power9_v2.0" },
#endif
2018-11-29 12:09:34 +00:00
2018-10-14 17:48:54 +00:00
+#if 0 /* Disabled for Red Hat Enterprise Linux */
/* Generic PowerPCs */
#if defined(TARGET_PPC64)
{ "ppc64", "970fx_v3.1" },
2018-11-29 12:09:34 +00:00
@@ -958,5 +969,6 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
2018-10-14 17:48:54 +00:00
{ "ppc32", "604" },
{ "ppc", "604" },
{ "default", "604" },
+#endif
{ NULL, NULL }
};
diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c
2018-11-29 12:09:34 +00:00
index 7c253ff..e73f812 100644
2018-10-14 17:48:54 +00:00
--- a/target/s390x/cpu_models.c
+++ b/target/s390x/cpu_models.c
2018-11-29 12:09:34 +00:00
@@ -380,6 +380,9 @@ static void check_unavailable_features(const S390CPUModel *max_model,
2018-10-14 17:48:54 +00:00
(max_model->def->gen == model->def->gen &&
max_model->def->ec_ga < model->def->ec_ga)) {
list_add_feat("type", unavailable);
+ } else if (model->def->gen < 11 && kvm_enabled()) {
+ /* Older CPU models are not supported on Red Hat Enterprise Linux */
+ list_add_feat("type", unavailable);
}
/* detect missing features if any to properly report them */
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
2018-11-29 12:09:34 +00:00
index 2ebf26a..3a0337a 100644
2018-10-14 17:48:54 +00:00
--- a/target/s390x/kvm.c
+++ b/target/s390x/kvm.c
2018-11-29 12:09:34 +00:00
@@ -2342,6 +2342,14 @@ void kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp)
2018-10-14 17:48:54 +00:00
error_setg(errp, "KVM doesn't support CPU models");
return;
}
+
+ /* Older CPU models are not supported on Red Hat Enterprise Linux */
+ if (model->def->gen < 11) {
+ error_setg(errp, "KVM: Unsupported CPU type specified: %s",
+ MACHINE(qdev_get_machine())->cpu_type);
+ return;
+ }
+
prop.cpuid = s390_cpuid_from_cpu_model(model);
prop.ibc = s390_ibc_from_cpu_model(model);
/* configure cpu features indicated via STFL(e) */
diff --git a/vl.c b/vl.c
2018-12-13 12:54:47 +00:00
index a5ae5f2..22bd99c 100644
2018-10-14 17:48:54 +00:00
--- a/vl.c
+++ b/vl.c
2018-12-13 12:54:47 +00:00
@@ -172,7 +172,7 @@ unsigned int max_cpus;
2018-10-14 17:48:54 +00:00
int smp_cores = 1;
int smp_threads = 1;
int acpi_enabled = 1;
-int no_hpet = 0;
+int no_hpet = 1; /* Always disabled for Red Hat Enterprise Linux */
int fd_bootchk = 1;
static int no_reboot;
int no_shutdown = 0;
2018-12-13 12:54:47 +00:00
@@ -937,6 +937,7 @@ static void configure_rtc(QemuOpts *opts)
}
}
+#if 0 // Disabled for Red Hat Enterprise Linux
/***********************************************************/
/* Bluetooth support */
static int nb_hcis;
@@ -1058,6 +1059,7 @@ static int bt_parse(const char *opt)
error_report("bad bluetooth parameter '%s'", opt);
return 1;
}
+#endif
static int parse_name(void *opaque, QemuOpts *opts, Error **errp)
{
@@ -3273,6 +3275,7 @@ int main(int argc, char **argv, char **envp)
}
break;
#endif
+#if 0 /* Disabled for Red Hat Enterprise Linux */
case QEMU_OPTION_bt:
warn_report("The bluetooth subsystem is deprecated and will "
"be removed soon. If the bluetooth subsystem is "
@@ -3280,6 +3283,7 @@ int main(int argc, char **argv, char **envp)
"qemu-devel@nongnu.org with your usecase.");
add_device_config(DEV_BT, optarg);
break;
+#endif
case QEMU_OPTION_audio_help:
AUD_help ();
exit (0);
@@ -4417,9 +4421,11 @@ int main(int argc, char **argv, char **envp)
tpm_init();
+#if 0 // Disabled for Red Hat Enterprise Linux
/* init the bluetooth world */
if (foreach_device_config(DEV_BT, bt_parse))
exit(1);
+#endif
if (!xen_enabled()) {
/* On 32-bit hosts, QEMU is limited by virtual address space */
2018-10-14 17:48:54 +00:00
--
1.8.3.1