2021-01-05 05:59:21 +00:00
|
|
|
From 0ad3e82af785512a5a77373d2ad95c63dfedeaba Mon Sep 17 00:00:00 2001
|
2018-10-14 17:48:54 +00:00
|
|
|
From: Miroslav Rezanina <mrezanin@redhat.com>
|
2020-11-13 13:09:35 +00:00
|
|
|
Date: Wed, 2 Sep 2020 09:11:07 +0200
|
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
|
|
|
|
|
2019-05-07 21:00:36 +00:00
|
|
|
Rebase notes (4.0.0):
|
|
|
|
- Added CONFIG_PCI_EXPRESS_GENERIC_BRIDGE for aarch64-softmmu.mak
|
|
|
|
- Added CONFIG_ARM_VIRT for aarch64-softmmu.mak
|
|
|
|
- Switch to KConfig (upstream)
|
|
|
|
- Using device whitelist + without-defualt-devices option
|
|
|
|
|
2019-11-15 14:35:04 +00:00
|
|
|
Rebase notes (4.1.0):
|
2019-08-15 04:45:41 +00:00
|
|
|
- Added CONFIG_USB_OHCI_PCI for ppc64
|
|
|
|
- Added CONFIG_XIVE_KVM for ppc64
|
|
|
|
- Added CONFIG_ACPI_PCI for x86_64
|
|
|
|
- Added CONFIG_SEMIHOSTING for aarch64
|
|
|
|
- Cleanup aarch64 devices
|
|
|
|
- Do not build a15mpcore.c
|
|
|
|
- Removed ide-isa.c stub file
|
|
|
|
- Use CONFIG_USB_EHCI_PCI on x86_64 (new upstream)
|
|
|
|
|
2019-11-15 14:35:04 +00:00
|
|
|
Rebase notes (4.2.0-rc0):
|
|
|
|
- Use conditional build for isa-superio.c (upstream change)
|
|
|
|
- Rename PCI_PIIX to PCI_I440FX (upstream change)
|
|
|
|
|
2019-12-09 20:39:05 +00:00
|
|
|
Rebase notes (4.2.0-rc3):
|
|
|
|
- Disabled ccid-card-emulated (patch 92566)
|
|
|
|
- Disabled vfio-pci-igd-lpc-bridge (patch 92565)
|
|
|
|
|
2020-08-12 15:53:34 +00:00
|
|
|
Rebase notes (5.1.0):
|
2020-05-13 01:03:43 +00:00
|
|
|
- added CONFIG_PCI_EXPRESS on ppc64 (due to upstream dependency)
|
|
|
|
- Added CONFIG_NVDIMM
|
2020-07-08 13:37:45 +00:00
|
|
|
- updated cortex-15 disabling to upstream code
|
|
|
|
- Add CONFIG_ACPI_APEI for aarch64
|
2020-08-12 15:53:34 +00:00
|
|
|
- removed obsolete hw/bt/Makefile.objs chunk
|
|
|
|
- removed unnecessary changes in target/i386/cpu.c
|
2020-07-08 13:37:45 +00:00
|
|
|
|
2020-11-13 13:09:35 +00:00
|
|
|
Rebase notes (5.2.0 rc0):
|
|
|
|
- Added CONFIG_USB_XHCI_PCI on aarch64 ppc64 and x86_64
|
|
|
|
- remove vl.c hack for no hpet
|
|
|
|
- Enable CONFIG_PTIMER for aarch64
|
|
|
|
- Do not package hw-display-virtio-gpu.so on s390x
|
|
|
|
|
|
|
|
Rebase notes (5.2.0 rc1):
|
|
|
|
- Added CONFIG_ARM_GIC for aarch64 (required for build)
|
|
|
|
|
2018-12-13 12:54:47 +00:00
|
|
|
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
|
2019-05-07 21:00:36 +00:00
|
|
|
|
2019-11-15 14:35:04 +00:00
|
|
|
Merged patches (4.1.0):
|
2019-05-07 21:00:36 +00:00
|
|
|
- 20a51f6 fdc: Revert downstream disablement of device "floppy"
|
|
|
|
- f869cc0 fdc: Restrict floppy controllers to RHEL-7 machine types
|
2019-08-15 04:45:41 +00:00
|
|
|
- 5909721 aarch64: Compile out IOH3420
|
|
|
|
- 27b7c44 rh: set CONFIG_BOCHS_DISPLAY=y for x86 (partial)
|
|
|
|
- 495a27d x86_64-rh-devices: add missing TPM passthrough
|
|
|
|
- e1fe9fe x86_64-rh-devices: enable TPM emulation (partial)
|
2019-08-19 21:26:36 +00:00
|
|
|
|
2019-12-13 13:10:42 +00:00
|
|
|
Merged patches (4.2.0):
|
2019-11-15 14:35:04 +00:00
|
|
|
- f7587dd RHEL: disable hostmem-memfd
|
|
|
|
|
2020-11-13 13:09:35 +00:00
|
|
|
Merged patches (5.1.0):
|
2020-05-13 01:03:43 +00:00
|
|
|
- 4543a3c i386: Remove cpu64-rhel6 CPU model
|
2020-07-08 13:37:45 +00:00
|
|
|
- 96533 aarch64: Remove tcg cpu types (pjw commit)
|
|
|
|
- 559d589 Revert "RHEL: disable hostmem-memfd"
|
|
|
|
- 441128e enable ramfb
|
2020-07-15 20:28:51 +00:00
|
|
|
|
2020-11-13 13:09:35 +00:00
|
|
|
Merged patches (5.2.0 rc0):
|
|
|
|
- f70eb50 RHEL-only: Enable vTPM for POWER in downstream configs
|
|
|
|
- 69d8ae7 redhat: fix 5.0 rebase missing ISA TPM TIS
|
|
|
|
- 8310f89 RHEL-only: Enable vTPM for ARM in downstream configs
|
|
|
|
- 4a8ccfd Disable TPM passthrough backend on ARM
|
2018-10-14 17:48:54 +00:00
|
|
|
---
|
2021-01-05 05:59:21 +00:00
|
|
|
.../devices/aarch64-rh-devices.mak | 27 +++++
|
|
|
|
default-configs/devices/aarch64-softmmu.mak | 10 +-
|
|
|
|
default-configs/devices/ppc64-rh-devices.mak | 38 +++++++
|
|
|
|
default-configs/devices/ppc64-softmmu.mak | 10 +-
|
|
|
|
default-configs/devices/rh-virtio.mak | 10 ++
|
|
|
|
default-configs/devices/s390x-rh-devices.mak | 15 +++
|
|
|
|
default-configs/devices/s390x-softmmu.mak | 4 +-
|
|
|
|
default-configs/devices/x86_64-rh-devices.mak | 101 ++++++++++++++++++
|
|
|
|
default-configs/devices/x86_64-softmmu.mak | 4 +-
|
|
|
|
hw/acpi/ich9.c | 4 +-
|
|
|
|
hw/arm/meson.build | 2 +-
|
|
|
|
hw/block/fdc.c | 10 ++
|
|
|
|
hw/cpu/meson.build | 5 +-
|
|
|
|
hw/display/cirrus_vga.c | 3 +
|
|
|
|
hw/ide/piix.c | 5 +-
|
|
|
|
hw/input/pckbd.c | 2 +
|
|
|
|
hw/net/e1000.c | 2 +
|
|
|
|
hw/ppc/spapr_cpu_core.c | 2 +
|
|
|
|
hw/usb/meson.build | 2 +-
|
|
|
|
qemu-options.hx | 4 -
|
|
|
|
redhat/qemu-kvm.spec.template | 10 +-
|
|
|
|
target/arm/cpu.c | 4 +-
|
|
|
|
target/arm/cpu_tcg.c | 3 +
|
|
|
|
target/ppc/cpu-models.c | 10 ++
|
|
|
|
target/s390x/cpu_models.c | 3 +
|
|
|
|
target/s390x/kvm.c | 8 ++
|
|
|
|
26 files changed, 273 insertions(+), 25 deletions(-)
|
2020-11-13 13:09:35 +00:00
|
|
|
create mode 100644 default-configs/devices/aarch64-rh-devices.mak
|
|
|
|
create mode 100644 default-configs/devices/ppc64-rh-devices.mak
|
|
|
|
create mode 100644 default-configs/devices/rh-virtio.mak
|
|
|
|
create mode 100644 default-configs/devices/s390x-rh-devices.mak
|
|
|
|
create mode 100644 default-configs/devices/x86_64-rh-devices.mak
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/aarch64-rh-devices.mak b/default-configs/devices/aarch64-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2021-01-05 05:59:21 +00:00
|
|
|
index 0000000000..98319407de
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2020-11-13 13:09:35 +00:00
|
|
|
+++ b/default-configs/devices/aarch64-rh-devices.mak
|
|
|
|
@@ -0,0 +1,27 @@
|
2019-05-07 21:00:36 +00:00
|
|
|
+include rh-virtio.mak
|
|
|
|
+
|
|
|
|
+CONFIG_ARM_GIC_KVM=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_ARM_GIC=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_ARM_SMMUV3=y
|
|
|
|
+CONFIG_ARM_V7M=y
|
|
|
|
+CONFIG_ARM_VIRT=y
|
|
|
|
+CONFIG_EDID=y
|
|
|
|
+CONFIG_PCIE_PORT=y
|
|
|
|
+CONFIG_PCI_DEVICES=y
|
|
|
|
+CONFIG_PCI_TESTDEV=y
|
|
|
|
+CONFIG_PFLASH_CFI01=y
|
|
|
|
+CONFIG_SCSI=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_SEMIHOSTING=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_USB=y
|
|
|
|
+CONFIG_USB_XHCI=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_USB_XHCI_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VFIO=y
|
|
|
|
+CONFIG_VFIO_PCI=y
|
|
|
|
+CONFIG_VIRTIO_MMIO=y
|
|
|
|
+CONFIG_VIRTIO_PCI=y
|
|
|
|
+CONFIG_XIO3130=y
|
2020-07-08 13:37:45 +00:00
|
|
|
+CONFIG_NVDIMM=y
|
|
|
|
+CONFIG_ACPI_APEI=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_TPM_EMULATOR=y
|
|
|
|
+CONFIG_TPM_TIS_SYSBUS=y
|
|
|
|
+CONFIG_PTIMER=y
|
|
|
|
diff --git a/default-configs/devices/aarch64-softmmu.mak b/default-configs/devices/aarch64-softmmu.mak
|
2021-01-05 05:59:21 +00:00
|
|
|
index 958b1e08e4..8f6867d48a 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/default-configs/devices/aarch64-softmmu.mak
|
|
|
|
+++ b/default-configs/devices/aarch64-softmmu.mak
|
2019-08-15 04:45:41 +00:00
|
|
|
@@ -1,8 +1,10 @@
|
2018-10-14 17:48:54 +00:00
|
|
|
# Default configuration for aarch64-softmmu
|
2019-08-15 04:45:41 +00:00
|
|
|
|
|
|
|
# We support all the 32 bit boards so need all their config
|
2018-10-14 17:48:54 +00:00
|
|
|
-include arm-softmmu.mak
|
2019-08-15 04:45:41 +00:00
|
|
|
+#include arm-softmmu.mak
|
|
|
|
|
2018-10-14 17:48:54 +00:00
|
|
|
-CONFIG_XLNX_ZYNQMP_ARM=y
|
2018-11-29 12:09:34 +00:00
|
|
|
-CONFIG_XLNX_VERSAL=y
|
2019-08-15 04:45:41 +00:00
|
|
|
-CONFIG_SBSA_REF=y
|
|
|
|
+#CONFIG_XLNX_ZYNQMP_ARM=y
|
|
|
|
+#CONFIG_XLNX_VERSAL=y
|
|
|
|
+#CONFIG_SBSA_REF=y
|
|
|
|
+
|
2019-05-07 21:00:36 +00:00
|
|
|
+include aarch64-rh-devices.mak
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/ppc64-rh-devices.mak b/default-configs/devices/ppc64-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2021-01-05 05:59:21 +00:00
|
|
|
index 0000000000..467a16bdc2
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2020-11-13 13:09:35 +00:00
|
|
|
+++ b/default-configs/devices/ppc64-rh-devices.mak
|
|
|
|
@@ -0,0 +1,38 @@
|
2019-05-07 21:00:36 +00:00
|
|
|
+include rh-virtio.mak
|
|
|
|
+
|
|
|
|
+CONFIG_DIMM=y
|
|
|
|
+CONFIG_MEM_DEVICE=y
|
2020-05-13 01:03:43 +00:00
|
|
|
+CONFIG_NVDIMM=y
|
2018-10-14 17:48:54 +00:00
|
|
|
+CONFIG_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_PCI_DEVICES=y
|
2018-10-14 17:48:54 +00:00
|
|
|
+CONFIG_PCI_TESTDEV=y
|
2020-05-13 01:03:43 +00:00
|
|
|
+CONFIG_PCI_EXPRESS=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_PSERIES=y
|
|
|
|
+CONFIG_SCSI=y
|
|
|
|
+CONFIG_SPAPR_VSCSI=y
|
|
|
|
+CONFIG_TEST_DEVICES=y
|
2018-10-14 17:48:54 +00:00
|
|
|
+CONFIG_USB=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_USB_OHCI=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_USB_OHCI_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_USB_SMARTCARD=y
|
|
|
|
+CONFIG_USB_STORAGE_BOT=y
|
|
|
|
+CONFIG_USB_XHCI=y
|
|
|
|
+CONFIG_USB_XHCI_NEC=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_USB_XHCI_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VFIO=y
|
|
|
|
+CONFIG_VFIO_PCI=y
|
|
|
|
+CONFIG_VGA=y
|
|
|
|
+CONFIG_VGA_PCI=y
|
|
|
|
+CONFIG_VHOST_USER=y
|
|
|
|
+CONFIG_VIRTIO_PCI=y
|
|
|
|
+CONFIG_VIRTIO_VGA=y
|
|
|
|
+CONFIG_WDT_IB6300ESB=y
|
|
|
|
+CONFIG_XICS=y
|
|
|
|
+CONFIG_XICS_KVM=y
|
|
|
|
+CONFIG_XICS_SPAPR=y
|
|
|
|
+CONFIG_XIVE=y
|
|
|
|
+CONFIG_XIVE_SPAPR=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_XIVE_KVM=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_TPM_SPAPR=y
|
|
|
|
+CONFIG_TPM_EMULATOR=y
|
|
|
|
+CONFIG_TPM_PASSTHROUGH=y
|
|
|
|
diff --git a/default-configs/devices/ppc64-softmmu.mak b/default-configs/devices/ppc64-softmmu.mak
|
2021-01-05 05:59:21 +00:00
|
|
|
index ae0841fa3a..040e5575e7 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/default-configs/devices/ppc64-softmmu.mak
|
|
|
|
+++ b/default-configs/devices/ppc64-softmmu.mak
|
2020-05-13 01:03:43 +00:00
|
|
|
@@ -1,11 +1,13 @@
|
2018-10-14 17:48:54 +00:00
|
|
|
# Default configuration for ppc64-softmmu
|
|
|
|
|
2019-05-07 21:00:36 +00:00
|
|
|
# Include all 32-bit boards
|
2018-10-14 17:48:54 +00:00
|
|
|
-include ppc-softmmu.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
+#include ppc-softmmu.mak
|
2018-10-14 17:48:54 +00:00
|
|
|
|
|
|
|
# For PowerNV
|
|
|
|
-CONFIG_POWERNV=y
|
2018-12-13 12:54:47 +00:00
|
|
|
+#CONFIG_POWERNV=y
|
2018-10-14 17:48:54 +00:00
|
|
|
|
|
|
|
# For pSeries
|
2019-05-07 21:00:36 +00:00
|
|
|
-CONFIG_PSERIES=y
|
2020-05-13 01:03:43 +00:00
|
|
|
-CONFIG_NVDIMM=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+#CONFIG_PSERIES=y
|
2020-05-13 01:03:43 +00:00
|
|
|
+#CONFIG_NVDIMM=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+
|
|
|
|
+include ppc64-rh-devices.mak
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/rh-virtio.mak b/default-configs/devices/rh-virtio.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2021-01-05 05:59:21 +00:00
|
|
|
index 0000000000..94ede1b5f6
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2020-11-13 13:09:35 +00:00
|
|
|
+++ b/default-configs/devices/rh-virtio.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
@@ -0,0 +1,10 @@
|
|
|
|
+CONFIG_VIRTIO=y
|
|
|
|
+CONFIG_VIRTIO_BALLOON=y
|
|
|
|
+CONFIG_VIRTIO_BLK=y
|
|
|
|
+CONFIG_VIRTIO_GPU=y
|
|
|
|
+CONFIG_VIRTIO_INPUT=y
|
|
|
|
+CONFIG_VIRTIO_INPUT_HOST=y
|
|
|
|
+CONFIG_VIRTIO_NET=y
|
|
|
|
+CONFIG_VIRTIO_RNG=y
|
|
|
|
+CONFIG_VIRTIO_SCSI=y
|
|
|
|
+CONFIG_VIRTIO_SERIAL=y
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/s390x-rh-devices.mak b/default-configs/devices/s390x-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2021-01-05 05:59:21 +00:00
|
|
|
index 0000000000..c3c73fe752
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2020-11-13 13:09:35 +00:00
|
|
|
+++ b/default-configs/devices/s390x-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
@@ -0,0 +1,15 @@
|
|
|
|
+include rh-virtio.mak
|
|
|
|
+
|
|
|
|
+CONFIG_PCI=y
|
|
|
|
+CONFIG_S390_CCW_VIRTIO=y
|
|
|
|
+CONFIG_S390_FLIC=y
|
|
|
|
+CONFIG_S390_FLIC_KVM=y
|
|
|
|
+CONFIG_SCLPCONSOLE=y
|
|
|
|
+CONFIG_SCSI=y
|
|
|
|
+CONFIG_TERMINAL3270=y
|
|
|
|
+CONFIG_VFIO=y
|
|
|
|
+CONFIG_VFIO_AP=y
|
|
|
|
+CONFIG_VFIO_PCI=y
|
|
|
|
+CONFIG_VHOST_USER=y
|
|
|
|
+CONFIG_VIRTIO_CCW=y
|
|
|
|
+CONFIG_WDT_DIAG288=y
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/s390x-softmmu.mak b/default-configs/devices/s390x-softmmu.mak
|
2021-01-05 05:59:21 +00:00
|
|
|
index f2287a133f..3e2e388e91 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/default-configs/devices/s390x-softmmu.mak
|
|
|
|
+++ b/default-configs/devices/s390x-softmmu.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
@@ -10,4 +10,6 @@
|
|
|
|
|
|
|
|
# Boards:
|
|
|
|
#
|
|
|
|
-CONFIG_S390_CCW_VIRTIO=y
|
|
|
|
+#CONFIG_S390_CCW_VIRTIO=y
|
|
|
|
+
|
|
|
|
+include s390x-rh-devices.mak
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/x86_64-rh-devices.mak b/default-configs/devices/x86_64-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2021-01-05 05:59:21 +00:00
|
|
|
index 0000000000..e80877d4e2
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2020-11-13 13:09:35 +00:00
|
|
|
+++ b/default-configs/devices/x86_64-rh-devices.mak
|
|
|
|
@@ -0,0 +1,101 @@
|
2019-05-07 21:00:36 +00:00
|
|
|
+include rh-virtio.mak
|
|
|
|
+
|
|
|
|
+CONFIG_AC97=y
|
|
|
|
+CONFIG_ACPI=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_ACPI_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_ACPI_CPU_HOTPLUG=y
|
|
|
|
+CONFIG_ACPI_MEMORY_HOTPLUG=y
|
|
|
|
+CONFIG_ACPI_NVDIMM=y
|
|
|
|
+CONFIG_ACPI_SMBUS=y
|
|
|
|
+CONFIG_ACPI_VMGENID=y
|
|
|
|
+CONFIG_ACPI_X86=y
|
|
|
|
+CONFIG_ACPI_X86_ICH=y
|
|
|
|
+CONFIG_AHCI=y
|
|
|
|
+CONFIG_APIC=y
|
|
|
|
+CONFIG_APM=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_BOCHS_DISPLAY=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_DIMM=y
|
|
|
|
+CONFIG_E1000E_PCI_EXPRESS=y
|
|
|
|
+CONFIG_E1000_PCI=y
|
|
|
|
+CONFIG_EDU=y
|
|
|
|
+CONFIG_FDC=y
|
|
|
|
+CONFIG_FW_CFG_DMA=y
|
|
|
|
+CONFIG_HDA=y
|
|
|
|
+CONFIG_HYPERV=y
|
|
|
|
+CONFIG_HYPERV_TESTDEV=y
|
|
|
|
+CONFIG_I2C=y
|
|
|
|
+CONFIG_I440FX=y
|
|
|
|
+CONFIG_I8254=y
|
|
|
|
+CONFIG_I8257=y
|
|
|
|
+CONFIG_I8259=y
|
|
|
|
+CONFIG_I82801B11=y
|
|
|
|
+CONFIG_IDE_CORE=y
|
|
|
|
+CONFIG_IDE_PCI=y
|
|
|
|
+CONFIG_IDE_PIIX=y
|
|
|
|
+CONFIG_IDE_QDEV=y
|
|
|
|
+CONFIG_IOAPIC=y
|
|
|
|
+CONFIG_IOH3420=y
|
|
|
|
+CONFIG_ISA_BUS=y
|
|
|
|
+CONFIG_ISA_DEBUG=y
|
|
|
|
+CONFIG_ISA_TESTDEV=y
|
|
|
|
+CONFIG_LPC_ICH9=y
|
|
|
|
+CONFIG_MC146818RTC=y
|
|
|
|
+CONFIG_MEM_DEVICE=y
|
|
|
|
+CONFIG_NVDIMM=y
|
|
|
|
+CONFIG_OPENGL=y
|
|
|
|
+CONFIG_PAM=y
|
|
|
|
+CONFIG_PC=y
|
|
|
|
+CONFIG_PCI=y
|
|
|
|
+CONFIG_PCIE_PORT=y
|
|
|
|
+CONFIG_PCI_DEVICES=y
|
|
|
|
+CONFIG_PCI_EXPRESS=y
|
|
|
|
+CONFIG_PCI_EXPRESS_Q35=y
|
2019-11-15 14:35:04 +00:00
|
|
|
+CONFIG_PCI_I440FX=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_PCI_TESTDEV=y
|
|
|
|
+CONFIG_PCKBD=y
|
|
|
|
+CONFIG_PCSPK=y
|
|
|
|
+CONFIG_PC_ACPI=y
|
|
|
|
+CONFIG_PC_PCI=y
|
|
|
|
+CONFIG_PFLASH_CFI01=y
|
|
|
|
+CONFIG_PVPANIC=y
|
|
|
|
+CONFIG_PXB=y
|
|
|
|
+CONFIG_Q35=y
|
|
|
|
+CONFIG_QXL=y
|
|
|
|
+CONFIG_RTL8139_PCI=y
|
|
|
|
+CONFIG_SCSI=y
|
|
|
|
+CONFIG_SERIAL=y
|
|
|
|
+CONFIG_SERIAL_ISA=y
|
|
|
|
+CONFIG_SERIAL_PCI=y
|
|
|
|
+CONFIG_SEV=y
|
|
|
|
+CONFIG_SGA=y
|
|
|
|
+CONFIG_SMBIOS=y
|
|
|
|
+CONFIG_SMBUS_EEPROM=y
|
|
|
|
+CONFIG_SPICE=y
|
|
|
|
+CONFIG_TEST_DEVICES=y
|
|
|
|
+CONFIG_USB=y
|
|
|
|
+CONFIG_USB_EHCI=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_USB_EHCI_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_USB_SMARTCARD=y
|
|
|
|
+CONFIG_USB_STORAGE_BOT=y
|
|
|
|
+CONFIG_USB_UHCI=y
|
|
|
|
+CONFIG_USB_XHCI=y
|
|
|
|
+CONFIG_USB_XHCI_NEC=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_USB_XHCI_PCI=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VFIO=y
|
|
|
|
+CONFIG_VFIO_PCI=y
|
|
|
|
+CONFIG_VGA=y
|
|
|
|
+CONFIG_VGA_CIRRUS=y
|
|
|
|
+CONFIG_VGA_PCI=y
|
|
|
|
+CONFIG_VHOST_USER=y
|
|
|
|
+CONFIG_VIRTIO_PCI=y
|
|
|
|
+CONFIG_VIRTIO_VGA=y
|
|
|
|
+CONFIG_VMMOUSE=y
|
|
|
|
+CONFIG_VMPORT=y
|
|
|
|
+CONFIG_VTD=y
|
|
|
|
+CONFIG_WDT_IB6300ESB=y
|
|
|
|
+CONFIG_WDT_IB700=y
|
|
|
|
+CONFIG_XIO3130=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_TPM_CRB=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_TPM_TIS_ISA=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_TPM_EMULATOR=y
|
|
|
|
+CONFIG_TPM_PASSTHROUGH=y
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/default-configs/devices/x86_64-softmmu.mak b/default-configs/devices/x86_64-softmmu.mak
|
2021-01-05 05:59:21 +00:00
|
|
|
index 64b2ee2960..b5de7e5279 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/default-configs/devices/x86_64-softmmu.mak
|
|
|
|
+++ b/default-configs/devices/x86_64-softmmu.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
@@ -1,3 +1,5 @@
|
|
|
|
# Default configuration for x86_64-softmmu
|
|
|
|
|
|
|
|
-include i386-softmmu.mak
|
|
|
|
+#include i386-softmmu.mak
|
|
|
|
+
|
|
|
|
+include x86_64-rh-devices.mak
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index 5ff4e01c36..ac45ca4acb 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/acpi/ich9.c
|
|
|
|
+++ b/hw/acpi/ich9.c
|
2020-07-08 13:37:45 +00:00
|
|
|
@@ -374,8 +374,8 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs *pm)
|
2018-10-14 17:48:54 +00:00
|
|
|
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,
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/hw/arm/meson.build b/hw/arm/meson.build
|
2021-01-05 05:59:21 +00:00
|
|
|
index be39117b9b..6fcc5ede50 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/hw/arm/meson.build
|
|
|
|
+++ b/hw/arm/meson.build
|
|
|
|
@@ -30,7 +30,7 @@ arm_ss.add(when: 'CONFIG_VEXPRESS', if_true: files('vexpress.c'))
|
|
|
|
arm_ss.add(when: 'CONFIG_ZYNQ', if_true: files('xilinx_zynq.c'))
|
|
|
|
arm_ss.add(when: 'CONFIG_SABRELITE', if_true: files('sabrelite.c'))
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2020-11-13 13:09:35 +00:00
|
|
|
-arm_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m.c'))
|
|
|
|
+#arm_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m.c'))
|
|
|
|
arm_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210.c'))
|
|
|
|
arm_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx.c', 'pxa2xx_gpio.c', 'pxa2xx_pic.c'))
|
|
|
|
arm_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic.c'))
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index 4c2c35e223..e9eb7b8279 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/block/fdc.c
|
|
|
|
+++ b/hw/block/fdc.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -48,6 +48,8 @@
|
2019-05-07 21:00:36 +00:00
|
|
|
#include "trace.h"
|
2020-11-13 13:09:35 +00:00
|
|
|
#include "qom/object.h"
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2019-05-07 21:00:36 +00:00
|
|
|
+#include "hw/boards.h"
|
|
|
|
+
|
|
|
|
/********************************************************/
|
|
|
|
/* debug Floppy devices */
|
|
|
|
|
2020-08-12 15:53:34 +00:00
|
|
|
@@ -2621,6 +2623,14 @@ static void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl,
|
2019-05-07 21:00:36 +00:00
|
|
|
int i, j;
|
|
|
|
static int command_tables_inited = 0;
|
|
|
|
|
|
|
|
+ /* Restricted for Red Hat Enterprise Linux: */
|
|
|
|
+ MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
|
|
|
|
+ if (!strstr(mc->name, "-rhel7.")) {
|
|
|
|
+ error_setg(errp, "Device %s is not supported with machine type %s",
|
|
|
|
+ object_get_typename(OBJECT(dev)), mc->name);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (fdctrl->fallback == FLOPPY_DRIVE_TYPE_AUTO) {
|
|
|
|
error_setg(errp, "Cannot choose a fallback FDrive type of 'auto'");
|
2020-07-08 13:37:45 +00:00
|
|
|
return;
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/hw/cpu/meson.build b/hw/cpu/meson.build
|
2021-01-05 05:59:21 +00:00
|
|
|
index 9e52fee9e7..bb71c9f3e7 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/hw/cpu/meson.build
|
|
|
|
+++ b/hw/cpu/meson.build
|
|
|
|
@@ -1,6 +1,7 @@
|
|
|
|
-softmmu_ss.add(files('core.c', 'cluster.c'))
|
|
|
|
+#softmmu_ss.add(files('core.c', 'cluster.c'))
|
|
|
|
+softmmu_ss.add(files('core.c'))
|
|
|
|
|
|
|
|
specific_ss.add(when: 'CONFIG_ARM11MPCORE', if_true: files('arm11mpcore.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview_mpcore.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_A9MPCORE', if_true: files('a9mpcore.c'))
|
|
|
|
-specific_ss.add(when: 'CONFIG_A15MPCORE', if_true: files('a15mpcore.c'))
|
|
|
|
+#specific_ss.add(when: 'CONFIG_A15MPCORE', if_true: files('a15mpcore.c'))
|
2018-12-13 12:54:47 +00:00
|
|
|
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index fdca6ca659..fa1a7eee51 100644
|
2018-12-13 12:54:47 +00:00
|
|
|
--- a/hw/display/cirrus_vga.c
|
|
|
|
+++ b/hw/display/cirrus_vga.c
|
2020-11-26 09:42:21 +00:00
|
|
|
@@ -2945,6 +2945,9 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
|
2018-12-13 12:54:47 +00:00
|
|
|
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/ide/piix.c b/hw/ide/piix.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index b9860e35a5..beb1ea6c46 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/ide/piix.c
|
|
|
|
+++ b/hw/ide/piix.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -220,7 +220,8 @@ static void piix3_ide_class_init(ObjectClass *klass, void *data)
|
2018-10-14 17:48:54 +00:00
|
|
|
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 = {
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -249,6 +250,8 @@ static void piix4_ide_class_init(ObjectClass *klass, void *data)
|
2018-10-14 17:48:54 +00:00
|
|
|
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/input/pckbd.c b/hw/input/pckbd.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index dde85ba6c6..62cf60c9c9 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/input/pckbd.c
|
|
|
|
+++ b/hw/input/pckbd.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -597,6 +597,8 @@ static void i8042_class_initfn(ObjectClass *klass, void *data)
|
2018-10-14 17:48:54 +00:00
|
|
|
dc->vmsd = &vmstate_kbd_isa;
|
2020-07-08 13:37:45 +00:00
|
|
|
isa->build_aml = i8042_build_aml;
|
2019-05-07 21:00:36 +00:00
|
|
|
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
2018-10-14 17:48:54 +00:00
|
|
|
+ /* Disabled for Red Hat Enterprise Linux: */
|
|
|
|
+ dc->user_creatable = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const TypeInfo i8042_info = {
|
|
|
|
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index d7d05ae30a..aaea06d29c 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/net/e1000.c
|
|
|
|
+++ b/hw/net/e1000.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -1796,6 +1796,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,
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -1808,6 +1809,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/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index 2f7dc3c23d..55d36e0069 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/ppc/spapr_cpu_core.c
|
|
|
|
+++ b/hw/ppc/spapr_cpu_core.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -376,10 +376,12 @@ static const TypeInfo spapr_cpu_core_type_infos[] = {
|
2019-05-07 21:00:36 +00:00
|
|
|
.instance_size = sizeof(SpaprCpuCore),
|
|
|
|
.class_size = sizeof(SpaprCpuCoreClass),
|
2018-10-14 17:48:54 +00:00
|
|
|
},
|
|
|
|
+#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"),
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/hw/usb/meson.build b/hw/usb/meson.build
|
2021-01-05 05:59:21 +00:00
|
|
|
index 934e4fa675..e3abba548a 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/hw/usb/meson.build
|
|
|
|
+++ b/hw/usb/meson.build
|
|
|
|
@@ -48,7 +48,7 @@ softmmu_ss.add(when: 'CONFIG_USB_SMARTCARD', if_true: files('dev-smartcard-reade
|
|
|
|
if config_host.has_key('CONFIG_SMARTCARD')
|
|
|
|
usbsmartcard_ss = ss.source_set()
|
|
|
|
usbsmartcard_ss.add(when: 'CONFIG_USB_SMARTCARD',
|
|
|
|
- if_true: [cacard, files('ccid-card-emulated.c', 'ccid-card-passthru.c')])
|
|
|
|
+ if_true: [cacard, files('ccid-card-passthru.c')])
|
|
|
|
hw_usb_modules += {'smartcard': usbsmartcard_ss}
|
2019-12-09 20:39:05 +00:00
|
|
|
endif
|
2020-11-13 13:09:35 +00:00
|
|
|
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/qemu-options.hx b/qemu-options.hx
|
2021-01-05 05:59:21 +00:00
|
|
|
index 104632ea34..363a15b4e8 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/qemu-options.hx
|
|
|
|
+++ b/qemu-options.hx
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -2251,10 +2251,6 @@ ERST
|
2018-10-14 17:48:54 +00:00
|
|
|
|
|
|
|
DEF("no-hpet", 0, QEMU_OPTION_no_hpet,
|
|
|
|
"-no-hpet disable HPET\n", QEMU_ARCH_I386)
|
2020-05-13 01:03:43 +00:00
|
|
|
-SRST
|
|
|
|
-``-no-hpet``
|
|
|
|
- Disable HPET support.
|
|
|
|
-ERST
|
2018-10-14 17:48:54 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index 07492e9f9a..a0487148e8 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/target/arm/cpu.c
|
|
|
|
+++ b/target/arm/cpu.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -2358,7 +2358,9 @@ static void arm_cpu_register_types(void)
|
2020-07-08 13:37:45 +00:00
|
|
|
|
|
|
|
type_register_static(&idau_interface_type_info);
|
|
|
|
for (i = 0; i < cpu_count; ++i) {
|
|
|
|
- arm_cpu_register(&arm_cpus[i]);
|
|
|
|
+ /* RHEL specific: Filter out unsupported cpu models */
|
|
|
|
+ if (!strcmp(arm_cpus[i].name, "cortex-a15"))
|
|
|
|
+ arm_cpu_register(&arm_cpus[i]);
|
|
|
|
}
|
2018-10-14 17:48:54 +00:00
|
|
|
}
|
2020-07-08 13:37:45 +00:00
|
|
|
}
|
|
|
|
diff --git a/target/arm/cpu_tcg.c b/target/arm/cpu_tcg.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index 0013e25412..6540046128 100644
|
2020-07-08 13:37:45 +00:00
|
|
|
--- a/target/arm/cpu_tcg.c
|
|
|
|
+++ b/target/arm/cpu_tcg.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -679,6 +679,9 @@ static void arm_tcg_cpu_register_types(void)
|
2020-07-08 13:37:45 +00:00
|
|
|
{
|
|
|
|
size_t i;
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2020-07-08 13:37:45 +00:00
|
|
|
+ /* Disable TCG cpu types for Red Hat Enterprise Linux */
|
|
|
|
+ return;
|
|
|
|
+
|
|
|
|
for (i = 0; i < ARRAY_SIZE(arm_tcg_cpus); ++i) {
|
|
|
|
arm_cpu_register(&arm_tcg_cpus[i]);
|
|
|
|
}
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
|
2021-01-05 05:59:21 +00:00
|
|
|
index 87e4228614..6eaa65efff 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/target/ppc/cpu-models.c
|
|
|
|
+++ b/target/ppc/cpu-models.c
|
2019-08-15 04:45:41 +00:00
|
|
|
@@ -66,6 +66,7 @@
|
2018-10-14 17:48:54 +00:00
|
|
|
#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,
|
2019-08-15 04:45:41 +00:00
|
|
|
@@ -740,8 +741,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 */
|
2019-08-15 04:45:41 +00:00
|
|
|
#if defined(TARGET_PPC64)
|
2018-10-14 17:48:54 +00:00
|
|
|
+#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,
|
2019-08-15 04:45:41 +00:00
|
|
|
@@ -760,6 +763,7 @@
|
2018-10-14 17:48:54 +00:00
|
|
|
"PowerPC 970MP v1.1")
|
2018-11-29 12:09:34 +00:00
|
|
|
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,
|
2020-05-13 01:03:43 +00:00
|
|
|
@@ -782,6 +786,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" },
|
2020-05-13 01:03:43 +00:00
|
|
|
@@ -940,12 +945,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" },
|
2020-05-13 01:03:43 +00:00
|
|
|
@@ -955,6 +963,7 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
|
|
|
|
{ "power10", "power10_v1.0" },
|
2018-10-14 17:48:54 +00:00
|
|
|
#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" },
|
2020-05-13 01:03:43 +00:00
|
|
|
@@ -962,5 +971,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
|
2021-01-05 05:59:21 +00:00
|
|
|
index b5abff8bef..abe09d73c2 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/target/s390x/cpu_models.c
|
|
|
|
+++ b/target/s390x/cpu_models.c
|
2020-11-13 13:09:35 +00:00
|
|
|
@@ -408,6 +408,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
|
2021-01-05 05:59:21 +00:00
|
|
|
index b8385e6b95..1839cc6648 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/target/s390x/kvm.c
|
|
|
|
+++ b/target/s390x/kvm.c
|
2020-11-26 09:42:21 +00:00
|
|
|
@@ -2552,6 +2552,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) */
|
|
|
|
--
|
2021-01-05 05:59:21 +00:00
|
|
|
2.18.4
|
2018-10-14 17:48:54 +00:00
|
|
|
|