2023-08-29 12:37:47 +00:00
|
|
|
From 2a8663a185aaafacac2414477c70d749be211d8e Mon Sep 17 00:00:00 2001
|
2018-10-14 17:48:54 +00:00
|
|
|
From: Miroslav Rezanina <mrezanin@redhat.com>
|
2022-12-15 06:04:15 +00:00
|
|
|
Date: Wed, 7 Dec 2022 03:05:48 -0500
|
2023-08-29 12:37:47 +00:00
|
|
|
Subject: [PATCH] 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>
|
2021-09-02 06:44:51 +00:00
|
|
|
--
|
2021-12-16 07:06:10 +00:00
|
|
|
Rebase notes (6.1.0):
|
2021-09-02 06:44:51 +00:00
|
|
|
- Added CONFIG_TPM (except s390x)
|
|
|
|
- default-configs moved to configs
|
|
|
|
- Use --with-device-<ARCH> configure option to use rhel configs
|
|
|
|
|
2022-04-20 07:49:16 +00:00
|
|
|
Rebase notes (6.2.0):
|
2021-12-16 07:06:10 +00:00
|
|
|
- Add CONFIG_ISA_FDC
|
|
|
|
- Do not remove -no-hpet documentation
|
|
|
|
|
2022-04-20 07:49:16 +00:00
|
|
|
Rebase notes (7.0.0):
|
|
|
|
- Added CONFIG_ARM_GIC_TCG option for aarch64
|
|
|
|
- Fixes necessary for layout change fixes
|
|
|
|
- Renamed CONFIG_ARM_GIC_TCG to CONFIG_ARM_GICV3_TCG
|
|
|
|
- Removed upstream devices
|
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
Rebase notes (7.1.0):
|
2022-09-05 08:13:56 +00:00
|
|
|
- Added CONFIG_VHOST_VSOCK and CONFIG_VHOST_USER_VSOCK configs
|
|
|
|
- Added CONFIG_CXL and CONFIG_CXL_MEM_DEVICE for aarch64 and x86_64
|
|
|
|
- Added CONFIG_VHOST_USER_FS option (all archs)
|
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
Rebase notes (7.2.0):
|
2022-12-15 06:04:15 +00:00
|
|
|
- Removed disabling a15mpcore.c as no longer needed
|
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
Rebase notes (8.0.0):
|
2023-04-20 06:33:14 +00:00
|
|
|
- Rename CONFIG_ACPI_X86_ICH to CONFIG_ACPI_ICH9
|
|
|
|
- Inlude qemu/error-report.h in hw/display/cirrus_vga.c
|
|
|
|
- Change virtiofsd dependency version
|
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
Rebase notes (8.1.0):
|
|
|
|
- Added CONFIG_PCIE_PCI_BRIDGE for x86_64
|
|
|
|
- Disabling tcg cpus for aarch64
|
|
|
|
- Disable CONFIG_ARM_V7M and remove related hack
|
|
|
|
- Moved aarch64 tcg cpu disabling from arm machine type commit
|
|
|
|
|
2021-12-16 07:06:10 +00:00
|
|
|
Merged patches (6.1.0):
|
|
|
|
- c51bf45304 Remove SPICE and QXL from x86_64-rh-devices.mak
|
2021-09-02 06:44:51 +00:00
|
|
|
- 02fc745601 aarch64-rh-devices: add CONFIG_PVPANIC_PCI
|
|
|
|
- f2fe835153 aarch64-rh-devices: add CONFIG_PXB
|
|
|
|
- b5431733ad disable CONFIG_USB_STORAGE_BOT
|
|
|
|
- 478ba0cdf6 Disable TPM passthrough
|
|
|
|
- 2504d68a7c aarch64: Add USB storage devices
|
|
|
|
- 51c2a3253c disable ac97 audio
|
2021-12-16 07:06:10 +00:00
|
|
|
|
2022-04-20 07:49:16 +00:00
|
|
|
Merged patches (6.2.0):
|
2021-12-16 07:06:10 +00:00
|
|
|
- 9f2f9fa2ba disable sga device
|
2022-04-20 07:49:16 +00:00
|
|
|
|
|
|
|
Merged patches (7.0.0):
|
|
|
|
- fd7c45a5a8 redhat: Enable virtio-mem as tech-preview on x86-64
|
|
|
|
- c9e68ea451 Enable SGX -- RH Only
|
2022-09-05 08:13:56 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
Merged patches (7.1.0):
|
2022-09-05 08:13:56 +00:00
|
|
|
- 38b89dc245 pc: Move s3/s4 suspend disabling to compat (only hw/acpi/ich9.c chunk)
|
|
|
|
- 8f663466c6 configs/devices/aarch64-softmmu: Enable CONFIG_VIRTIO_MEM
|
|
|
|
- 1bf372717a Enable virtio-iommu-pci on aarch64
|
|
|
|
- ae3f269458 Enable virtio-iommu-pci on x86_64
|
2023-08-29 12:37:47 +00:00
|
|
|
|
|
|
|
Merged patches (8.1.0):
|
|
|
|
- 8173d2eaba Disable unwanted new devices
|
2018-10-14 17:48:54 +00:00
|
|
|
---
|
2022-09-05 08:13:56 +00:00
|
|
|
.../aarch64-softmmu/aarch64-rh-devices.mak | 41 +++++++
|
|
|
|
.../ppc64-softmmu/ppc64-rh-devices.mak | 37 ++++++
|
2021-09-02 06:44:51 +00:00
|
|
|
configs/devices/rh-virtio.mak | 10 ++
|
2022-09-05 08:13:56 +00:00
|
|
|
.../s390x-softmmu/s390x-rh-devices.mak | 18 +++
|
2023-08-29 12:37:47 +00:00
|
|
|
.../x86_64-softmmu/x86_64-rh-devices.mak | 110 ++++++++++++++++++
|
|
|
|
hw/arm/virt.c | 2 +
|
2021-01-05 05:59:21 +00:00
|
|
|
hw/block/fdc.c | 10 ++
|
2022-12-15 06:04:15 +00:00
|
|
|
hw/cpu/meson.build | 3 +-
|
2023-08-29 12:37:47 +00:00
|
|
|
hw/display/cirrus_vga.c | 4 +
|
2021-01-05 05:59:21 +00:00
|
|
|
hw/ide/piix.c | 5 +-
|
2023-08-29 12:37:47 +00:00
|
|
|
hw/ide/qdev.c | 9 ++
|
2021-01-05 05:59:21 +00:00
|
|
|
hw/input/pckbd.c | 2 +
|
2023-08-29 12:37:47 +00:00
|
|
|
hw/misc/meson.build | 3 +-
|
2021-01-05 05:59:21 +00:00
|
|
|
hw/net/e1000.c | 2 +
|
|
|
|
hw/ppc/spapr_cpu_core.c | 2 +
|
|
|
|
hw/usb/meson.build | 2 +-
|
2023-08-29 12:37:47 +00:00
|
|
|
target/arm/arm-qmp-cmds.c | 2 +
|
|
|
|
target/arm/cpu-qom.h | 1 +
|
|
|
|
target/arm/cpu.c | 5 +
|
|
|
|
target/arm/cpu.h | 2 +
|
|
|
|
target/arm/cpu64.c | 12 +-
|
|
|
|
target/arm/tcg/cpu32.c | 2 +
|
|
|
|
target/arm/tcg/cpu64.c | 8 ++
|
2022-04-20 07:49:16 +00:00
|
|
|
target/ppc/cpu-models.c | 9 ++
|
2021-09-02 06:44:51 +00:00
|
|
|
target/s390x/cpu_models_sysemu.c | 3 +
|
|
|
|
target/s390x/kvm/kvm.c | 8 ++
|
2023-08-29 12:37:47 +00:00
|
|
|
tests/qtest/arm-cpu-features.c | 4 +
|
|
|
|
27 files changed, 311 insertions(+), 5 deletions(-)
|
2021-09-02 06:44:51 +00:00
|
|
|
create mode 100644 configs/devices/aarch64-softmmu/aarch64-rh-devices.mak
|
|
|
|
create mode 100644 configs/devices/ppc64-softmmu/ppc64-rh-devices.mak
|
|
|
|
create mode 100644 configs/devices/rh-virtio.mak
|
|
|
|
create mode 100644 configs/devices/s390x-softmmu/s390x-rh-devices.mak
|
|
|
|
create mode 100644 configs/devices/x86_64-softmmu/x86_64-rh-devices.mak
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/configs/devices/aarch64-softmmu/aarch64-rh-devices.mak b/configs/devices/aarch64-softmmu/aarch64-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
index 0000000000..aec1831199
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2021-09-02 06:44:51 +00:00
|
|
|
+++ b/configs/devices/aarch64-softmmu/aarch64-rh-devices.mak
|
2022-09-05 08:13:56 +00:00
|
|
|
@@ -0,0 +1,41 @@
|
2021-09-02 06:44:51 +00:00
|
|
|
+include ../rh-virtio.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
+
|
|
|
|
+CONFIG_ARM_GIC_KVM=y
|
2022-04-20 07:49:16 +00:00
|
|
|
+CONFIG_ARM_GICV3_TCG=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_VIRT=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_CXL=y
|
|
|
|
+CONFIG_CXL_MEM_DEVICE=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_EDID=y
|
|
|
|
+CONFIG_PCIE_PORT=y
|
2023-08-29 12:37:47 +00:00
|
|
|
+CONFIG_PCIE_PCI_BRIDGE=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+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
|
2021-09-02 06:44:51 +00:00
|
|
|
+CONFIG_USB_STORAGE_CORE=y
|
|
|
|
+CONFIG_USB_STORAGE_CLASSIC=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VFIO=y
|
|
|
|
+CONFIG_VFIO_PCI=y
|
|
|
|
+CONFIG_VIRTIO_MMIO=y
|
|
|
|
+CONFIG_VIRTIO_PCI=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_VIRTIO_MEM=y
|
|
|
|
+CONFIG_VIRTIO_IOMMU=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_XIO3130=y
|
2020-07-08 13:37:45 +00:00
|
|
|
+CONFIG_NVDIMM=y
|
|
|
|
+CONFIG_ACPI_APEI=y
|
2021-09-02 06:44:51 +00:00
|
|
|
+CONFIG_TPM=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_TPM_EMULATOR=y
|
|
|
|
+CONFIG_TPM_TIS_SYSBUS=y
|
|
|
|
+CONFIG_PTIMER=y
|
2021-04-30 07:28:51 +00:00
|
|
|
+CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
|
2021-09-02 06:44:51 +00:00
|
|
|
+CONFIG_PVPANIC_PCI=y
|
|
|
|
+CONFIG_PXB=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_VHOST_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_FS=y
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/configs/devices/ppc64-softmmu/ppc64-rh-devices.mak b/configs/devices/ppc64-softmmu/ppc64-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2022-09-05 08:13:56 +00:00
|
|
|
index 0000000000..dbb7d30829
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2021-09-02 06:44:51 +00:00
|
|
|
+++ b/configs/devices/ppc64-softmmu/ppc64-rh-devices.mak
|
2022-09-05 08:13:56 +00:00
|
|
|
@@ -0,0 +1,37 @@
|
2021-09-02 06:44:51 +00:00
|
|
|
+include ../rh-virtio.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
+
|
|
|
|
+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
|
2021-04-30 07:28:51 +00:00
|
|
|
+CONFIG_USB_STORAGE_CORE=y
|
|
|
|
+CONFIG_USB_STORAGE_CLASSIC=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+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_XIVE=y
|
2021-09-02 06:44:51 +00:00
|
|
|
+CONFIG_TPM=y
|
2020-11-13 13:09:35 +00:00
|
|
|
+CONFIG_TPM_SPAPR=y
|
|
|
|
+CONFIG_TPM_EMULATOR=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_VHOST_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_VSOCK=y
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/configs/devices/rh-virtio.mak b/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
|
2021-09-02 06:44:51 +00:00
|
|
|
+++ b/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
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/configs/devices/s390x-softmmu/s390x-rh-devices.mak b/configs/devices/s390x-softmmu/s390x-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2022-09-05 08:13:56 +00:00
|
|
|
index 0000000000..69a799adbd
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2021-09-02 06:44:51 +00:00
|
|
|
+++ b/configs/devices/s390x-softmmu/s390x-rh-devices.mak
|
2022-09-05 08:13:56 +00:00
|
|
|
@@ -0,0 +1,18 @@
|
2021-09-02 06:44:51 +00:00
|
|
|
+include ../rh-virtio.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
+
|
|
|
|
+CONFIG_PCI=y
|
|
|
|
+CONFIG_S390_CCW_VIRTIO=y
|
|
|
|
+CONFIG_S390_FLIC=y
|
|
|
|
+CONFIG_S390_FLIC_KVM=y
|
|
|
|
+CONFIG_SCLPCONSOLE=y
|
|
|
|
+CONFIG_SCSI=y
|
|
|
|
+CONFIG_VFIO=y
|
|
|
|
+CONFIG_VFIO_AP=y
|
2021-04-30 07:28:51 +00:00
|
|
|
+CONFIG_VFIO_CCW=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VFIO_PCI=y
|
|
|
|
+CONFIG_VHOST_USER=y
|
|
|
|
+CONFIG_VIRTIO_CCW=y
|
|
|
|
+CONFIG_WDT_DIAG288=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_VHOST_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_FS=y
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak b/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
new file mode 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
index 0000000000..6d16d81296
|
2019-05-07 21:00:36 +00:00
|
|
|
--- /dev/null
|
2021-09-02 06:44:51 +00:00
|
|
|
+++ b/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -0,0 +1,110 @@
|
2021-09-02 06:44:51 +00:00
|
|
|
+include ../rh-virtio.mak
|
2019-05-07 21:00:36 +00:00
|
|
|
+
|
|
|
|
+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
|
2023-04-20 06:33:14 +00:00
|
|
|
+CONFIG_ACPI_ICH9=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_AHCI=y
|
|
|
|
+CONFIG_APIC=y
|
|
|
|
+CONFIG_APM=y
|
2019-08-15 04:45:41 +00:00
|
|
|
+CONFIG_BOCHS_DISPLAY=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_CXL=y
|
|
|
|
+CONFIG_CXL_MEM_DEVICE=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
|
2021-09-02 06:44:51 +00:00
|
|
|
+CONFIG_FDC_SYSBUS=y
|
2021-12-16 07:06:10 +00:00
|
|
|
+CONFIG_FDC_ISA=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+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
|
2023-08-29 12:37:47 +00:00
|
|
|
+CONFIG_PCIE_PCI_BRIDGE=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_PFLASH_CFI01=y
|
2021-04-30 07:28:51 +00:00
|
|
|
+CONFIG_PVPANIC_ISA=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_PXB=y
|
|
|
|
+CONFIG_Q35=y
|
|
|
|
+CONFIG_RTL8139_PCI=y
|
|
|
|
+CONFIG_SCSI=y
|
|
|
|
+CONFIG_SERIAL=y
|
|
|
|
+CONFIG_SERIAL_ISA=y
|
|
|
|
+CONFIG_SERIAL_PCI=y
|
|
|
|
+CONFIG_SEV=y
|
|
|
|
+CONFIG_SMBIOS=y
|
|
|
|
+CONFIG_SMBUS_EEPROM=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
|
2021-04-30 07:28:51 +00:00
|
|
|
+CONFIG_USB_STORAGE_CORE=y
|
|
|
|
+CONFIG_USB_STORAGE_CLASSIC=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+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
|
2021-04-30 07:28:51 +00:00
|
|
|
+CONFIG_VHOST_USER_BLK=y
|
2022-04-20 07:49:16 +00:00
|
|
|
+CONFIG_VIRTIO_MEM=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VIRTIO_PCI=y
|
|
|
|
+CONFIG_VIRTIO_VGA=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_VIRTIO_IOMMU=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+CONFIG_VMMOUSE=y
|
|
|
|
+CONFIG_VMPORT=y
|
|
|
|
+CONFIG_VTD=y
|
|
|
|
+CONFIG_WDT_IB6300ESB=y
|
|
|
|
+CONFIG_WDT_IB700=y
|
|
|
|
+CONFIG_XIO3130=y
|
2021-09-02 06:44:51 +00:00
|
|
|
+CONFIG_TPM=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
|
2022-04-20 07:49:16 +00:00
|
|
|
+CONFIG_SGX=y
|
2022-09-05 08:13:56 +00:00
|
|
|
+CONFIG_VHOST_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_VSOCK=y
|
|
|
|
+CONFIG_VHOST_USER_FS=y
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
|
|
|
|
index 7d9dbc2663..3fbe942822 100644
|
|
|
|
--- a/hw/arm/virt.c
|
|
|
|
+++ b/hw/arm/virt.c
|
|
|
|
@@ -204,6 +204,7 @@ static const int a15irqmap[] = {
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char *valid_cpus[] = {
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
#ifdef CONFIG_TCG
|
|
|
|
ARM_CPU_TYPE_NAME("cortex-a7"),
|
|
|
|
ARM_CPU_TYPE_NAME("cortex-a15"),
|
|
|
|
@@ -216,6 +217,7 @@ static const char *valid_cpus[] = {
|
|
|
|
ARM_CPU_TYPE_NAME("neoverse-v1"),
|
|
|
|
#endif
|
|
|
|
ARM_CPU_TYPE_NAME("cortex-a53"),
|
|
|
|
+#endif /* disabled for RHEL */
|
|
|
|
ARM_CPU_TYPE_NAME("cortex-a57"),
|
|
|
|
ARM_CPU_TYPE_NAME("host"),
|
|
|
|
ARM_CPU_TYPE_NAME("max"),
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
|
2023-04-20 06:33:14 +00:00
|
|
|
index d7cc4d3ec1..12d0a60905 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/block/fdc.c
|
|
|
|
+++ b/hw/block/fdc.c
|
2022-04-20 07:49:16 +00:00
|
|
|
@@ -49,6 +49,8 @@
|
2020-11-13 13:09:35 +00:00
|
|
|
#include "qom/object.h"
|
2021-09-02 06:44:51 +00:00
|
|
|
#include "fdc-internal.h"
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2019-05-07 21:00:36 +00:00
|
|
|
+#include "hw/boards.h"
|
|
|
|
+
|
|
|
|
/********************************************************/
|
|
|
|
/* debug Floppy devices */
|
|
|
|
|
2022-09-05 08:13:56 +00:00
|
|
|
@@ -2346,6 +2348,14 @@ void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl, Error **errp)
|
2021-04-30 07:28:51 +00:00
|
|
|
FDrive *drive;
|
2019-05-07 21:00:36 +00:00
|
|
|
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
|
2023-08-29 12:37:47 +00:00
|
|
|
index 6d319947ca..91962fd863 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/hw/cpu/meson.build
|
|
|
|
+++ b/hw/cpu/meson.build
|
2022-12-15 06:04:15 +00:00
|
|
|
@@ -1,4 +1,5 @@
|
2023-08-29 12:37:47 +00:00
|
|
|
-system_ss.add(files('core.c', 'cluster.c'))
|
|
|
|
+#system_ss.add(files('core.c', 'cluster.c'))
|
|
|
|
+system_ss.add(files('core.c'))
|
2020-11-13 13:09:35 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
system_ss.add(when: 'CONFIG_ARM11MPCORE', if_true: files('arm11mpcore.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview_mpcore.c'))
|
2018-12-13 12:54:47 +00:00
|
|
|
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c
|
2023-08-29 12:37:47 +00:00
|
|
|
index b80f98b6c4..0370cf8a64 100644
|
2018-12-13 12:54:47 +00:00
|
|
|
--- a/hw/display/cirrus_vga.c
|
|
|
|
+++ b/hw/display/cirrus_vga.c
|
2023-04-20 06:33:14 +00:00
|
|
|
@@ -36,6 +36,7 @@
|
|
|
|
#include "qemu/module.h"
|
|
|
|
#include "qemu/units.h"
|
|
|
|
#include "qemu/log.h"
|
|
|
|
+#include "qemu/error-report.h"
|
|
|
|
#include "sysemu/reset.h"
|
|
|
|
#include "qapi/error.h"
|
|
|
|
#include "trace.h"
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -2946,6 +2947,9 @@ static void pci_cirrus_vga_realize(PCIDevice *dev, Error **errp)
|
2022-04-20 07:49:16 +00:00
|
|
|
PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(dev);
|
|
|
|
int16_t device_id = pc->device_id;
|
2018-12-13 12:54:47 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
+ warn_report("'cirrus-vga' is deprecated, "
|
|
|
|
+ "please use a different VGA card instead");
|
2018-12-13 12:54:47 +00:00
|
|
|
+
|
2023-08-29 12:37:47 +00:00
|
|
|
/*
|
2022-04-20 07:49:16 +00:00
|
|
|
* Follow real hardware, cirrus card emulated has 4 MB video memory.
|
|
|
|
* Also accept 8 MB/16 MB for backward compatibility.
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
|
2023-08-29 12:37:47 +00:00
|
|
|
index 4e5e12935f..03ca06bb17 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/ide/piix.c
|
|
|
|
+++ b/hw/ide/piix.c
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -190,7 +190,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 = {
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -214,6 +215,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 = {
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c
|
|
|
|
index 1b3b4da01d..454bfa5783 100644
|
|
|
|
--- a/hw/ide/qdev.c
|
|
|
|
+++ b/hw/ide/qdev.c
|
|
|
|
@@ -283,10 +283,13 @@ static void ide_cd_realize(IDEDevice *dev, Error **errp)
|
|
|
|
ide_dev_initfn(dev, IDE_CD, errp);
|
|
|
|
}
|
|
|
|
|
|
|
|
+/* Disabled for Red Hat Enterprise Linux */
|
|
|
|
+#if 0
|
|
|
|
static void ide_cf_realize(IDEDevice *dev, Error **errp)
|
|
|
|
{
|
|
|
|
ide_dev_initfn(dev, IDE_CFATA, errp);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define DEFINE_IDE_DEV_PROPERTIES() \
|
|
|
|
DEFINE_BLOCK_PROPERTIES(IDEDrive, dev.conf), \
|
|
|
|
@@ -346,6 +349,8 @@ static const TypeInfo ide_cd_info = {
|
|
|
|
.class_init = ide_cd_class_init,
|
|
|
|
};
|
|
|
|
|
|
|
|
+/* Disabled for Red Hat Enterprise Linux */
|
|
|
|
+#if 0
|
|
|
|
static Property ide_cf_properties[] = {
|
|
|
|
DEFINE_IDE_DEV_PROPERTIES(),
|
|
|
|
DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf),
|
|
|
|
@@ -371,6 +376,7 @@ static const TypeInfo ide_cf_info = {
|
|
|
|
.instance_size = sizeof(IDEDrive),
|
|
|
|
.class_init = ide_cf_class_init,
|
|
|
|
};
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static void ide_device_class_init(ObjectClass *klass, void *data)
|
|
|
|
{
|
|
|
|
@@ -396,7 +402,10 @@ static void ide_register_types(void)
|
|
|
|
type_register_static(&ide_bus_info);
|
|
|
|
type_register_static(&ide_hd_info);
|
|
|
|
type_register_static(&ide_cd_info);
|
|
|
|
+/* Disabled for Red Hat Enterprise Linux */
|
|
|
|
+#if 0
|
|
|
|
type_register_static(&ide_cf_info);
|
|
|
|
+#endif
|
|
|
|
type_register_static(&ide_device_type_info);
|
|
|
|
}
|
|
|
|
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
|
2022-09-05 08:13:56 +00:00
|
|
|
index b92b63bedc..3b6235dde6 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/input/pckbd.c
|
|
|
|
+++ b/hw/input/pckbd.c
|
2022-09-05 08:13:56 +00:00
|
|
|
@@ -957,6 +957,8 @@ static void i8042_class_initfn(ObjectClass *klass, void *data)
|
2018-10-14 17:48:54 +00:00
|
|
|
dc->vmsd = &vmstate_kbd_isa;
|
2022-09-05 08:13:56 +00:00
|
|
|
adevc->build_dev_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 = {
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/hw/misc/meson.build b/hw/misc/meson.build
|
|
|
|
index 892f8b91c5..736512a5c1 100644
|
|
|
|
--- a/hw/misc/meson.build
|
|
|
|
+++ b/hw/misc/meson.build
|
|
|
|
@@ -132,7 +132,8 @@ system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
|
|
|
|
|
|
|
|
-system_ss.add(when: 'CONFIG_I2C', if_true: files('i2c-echo.c'))
|
|
|
|
+# Disabled for Red Hat Enterprise Linux
|
|
|
|
+#system_ss.add(when: 'CONFIG_I2C', if_true: files('i2c-echo.c'))
|
|
|
|
|
|
|
|
specific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
|
|
|
|
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
|
2023-08-29 12:37:47 +00:00
|
|
|
index 093c2d4531..198562808d 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/net/e1000.c
|
|
|
|
+++ b/hw/net/e1000.c
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -1770,6 +1770,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,
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -1782,6 +1783,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
|
2023-08-29 12:37:47 +00:00
|
|
|
index b482d9754a..5c52e01fb7 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/ppc/spapr_cpu_core.c
|
|
|
|
+++ b/hw/ppc/spapr_cpu_core.c
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -384,10 +384,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
|
2023-08-29 12:37:47 +00:00
|
|
|
index e94149ebde..4a8adbf3dc 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/hw/usb/meson.build
|
|
|
|
+++ b/hw/usb/meson.build
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -52,7 +52,7 @@ system_ss.add(when: 'CONFIG_USB_SMARTCARD', if_true: files('dev-smartcard-reader
|
2021-09-02 06:44:51 +00:00
|
|
|
if cacard.found()
|
2020-11-13 13:09:35 +00:00
|
|
|
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
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/target/arm/arm-qmp-cmds.c b/target/arm/arm-qmp-cmds.c
|
|
|
|
index c8fa524002..3aa089abf3 100644
|
|
|
|
--- a/target/arm/arm-qmp-cmds.c
|
|
|
|
+++ b/target/arm/arm-qmp-cmds.c
|
|
|
|
@@ -231,6 +231,7 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
|
|
|
|
static void arm_cpu_add_definition(gpointer data, gpointer user_data)
|
|
|
|
{
|
|
|
|
ObjectClass *oc = data;
|
|
|
|
+ CPUClass *cc = CPU_CLASS(oc);
|
|
|
|
CpuDefinitionInfoList **cpu_list = user_data;
|
|
|
|
CpuDefinitionInfo *info;
|
|
|
|
const char *typename;
|
|
|
|
@@ -240,6 +241,7 @@ static void arm_cpu_add_definition(gpointer data, gpointer user_data)
|
|
|
|
info->name = g_strndup(typename,
|
|
|
|
strlen(typename) - strlen("-" TYPE_ARM_CPU));
|
|
|
|
info->q_typename = g_strdup(typename);
|
|
|
|
+ info->deprecated = !!cc->deprecation_note;
|
2021-04-30 07:28:51 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
QAPI_LIST_PREPEND(*cpu_list, info);
|
|
|
|
}
|
|
|
|
diff --git a/target/arm/cpu-qom.h b/target/arm/cpu-qom.h
|
|
|
|
index 514c22ced9..f789173451 100644
|
|
|
|
--- a/target/arm/cpu-qom.h
|
|
|
|
+++ b/target/arm/cpu-qom.h
|
|
|
|
@@ -35,6 +35,7 @@ typedef struct ARMCPUInfo {
|
|
|
|
const char *name;
|
|
|
|
void (*initfn)(Object *obj);
|
|
|
|
void (*class_init)(ObjectClass *oc, void *data);
|
|
|
|
+ const char *deprecation_note;
|
|
|
|
} ARMCPUInfo;
|
|
|
|
|
|
|
|
void arm_cpu_register(const ARMCPUInfo *info);
|
|
|
|
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
|
|
|
|
index 93c28d50e5..a8ecc1d474 100644
|
|
|
|
--- a/target/arm/cpu.c
|
|
|
|
+++ b/target/arm/cpu.c
|
|
|
|
@@ -2376,8 +2376,13 @@ static void arm_cpu_instance_init(Object *obj)
|
|
|
|
static void cpu_register_class_init(ObjectClass *oc, void *data)
|
2020-07-08 13:37:45 +00:00
|
|
|
{
|
2023-08-29 12:37:47 +00:00
|
|
|
ARMCPUClass *acc = ARM_CPU_CLASS(oc);
|
|
|
|
+ CPUClass *cc = CPU_CLASS(oc);
|
|
|
|
|
|
|
|
acc->info = data;
|
|
|
|
+
|
|
|
|
+ if (acc->info->deprecation_note) {
|
|
|
|
+ cc->deprecation_note = acc->info->deprecation_note;
|
|
|
|
+ }
|
2021-04-30 07:28:51 +00:00
|
|
|
}
|
2018-10-14 17:48:54 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
void arm_cpu_register(const ARMCPUInfo *info)
|
|
|
|
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
|
|
|
|
index 88e5accda6..6e191f6cc5 100644
|
|
|
|
--- a/target/arm/cpu.h
|
|
|
|
+++ b/target/arm/cpu.h
|
|
|
|
@@ -34,6 +34,8 @@
|
|
|
|
#define KVM_HAVE_MCE_INJECTION 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#define RHEL_CPU_DEPRECATION "use 'host' / 'max'"
|
|
|
|
+
|
|
|
|
#define EXCP_UDEF 1 /* undefined instruction */
|
|
|
|
#define EXCP_SWI 2 /* software interrupt */
|
|
|
|
#define EXCP_PREFETCH_ABORT 3
|
|
|
|
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
|
|
|
|
index 96158093cc..446e88aba8 100644
|
|
|
|
--- a/target/arm/cpu64.c
|
|
|
|
+++ b/target/arm/cpu64.c
|
|
|
|
@@ -609,6 +609,7 @@ static void aarch64_a57_initfn(Object *obj)
|
|
|
|
define_cortex_a72_a57_a53_cp_reginfo(cpu);
|
|
|
|
}
|
2021-04-30 07:28:51 +00:00
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2023-08-29 12:37:47 +00:00
|
|
|
static void aarch64_a53_initfn(Object *obj)
|
2021-04-30 07:28:51 +00:00
|
|
|
{
|
|
|
|
ARMCPU *cpu = ARM_CPU(obj);
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -665,6 +666,7 @@ static void aarch64_a53_initfn(Object *obj)
|
|
|
|
cpu->gic_pribits = 5;
|
|
|
|
define_cortex_a72_a57_a53_cp_reginfo(cpu);
|
2021-04-30 07:28:51 +00:00
|
|
|
}
|
2023-08-29 12:37:47 +00:00
|
|
|
+#endif
|
2021-04-30 07:28:51 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
static void aarch64_host_initfn(Object *obj)
|
2021-04-30 07:28:51 +00:00
|
|
|
{
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -703,8 +705,11 @@ static void aarch64_max_initfn(Object *obj)
|
2021-04-30 07:28:51 +00:00
|
|
|
}
|
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
static const ARMCPUInfo aarch64_cpus[] = {
|
|
|
|
- { .name = "cortex-a57", .initfn = aarch64_a57_initfn },
|
|
|
|
+ { .name = "cortex-a57", .initfn = aarch64_a57_initfn,
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION },
|
2021-04-30 07:28:51 +00:00
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2023-08-29 12:37:47 +00:00
|
|
|
{ .name = "cortex-a53", .initfn = aarch64_a53_initfn },
|
|
|
|
+#endif /* disabled for RHEL */
|
|
|
|
{ .name = "max", .initfn = aarch64_max_initfn },
|
|
|
|
#if defined(CONFIG_KVM) || defined(CONFIG_HVF)
|
|
|
|
{ .name = "host", .initfn = aarch64_host_initfn },
|
|
|
|
@@ -776,8 +781,13 @@ static void aarch64_cpu_instance_init(Object *obj)
|
|
|
|
static void cpu_register_class_init(ObjectClass *oc, void *data)
|
2021-04-30 07:28:51 +00:00
|
|
|
{
|
2023-08-29 12:37:47 +00:00
|
|
|
ARMCPUClass *acc = ARM_CPU_CLASS(oc);
|
|
|
|
+ CPUClass *cc = CPU_CLASS(oc);
|
2021-04-30 07:28:51 +00:00
|
|
|
|
2023-08-29 12:37:47 +00:00
|
|
|
acc->info = data;
|
|
|
|
+
|
|
|
|
+ if (acc->info->deprecation_note) {
|
|
|
|
+ cc->deprecation_note = acc->info->deprecation_note;
|
|
|
|
+ }
|
2021-04-30 07:28:51 +00:00
|
|
|
}
|
2023-08-29 12:37:47 +00:00
|
|
|
|
|
|
|
void aarch64_cpu_register(const ARMCPUInfo *info)
|
|
|
|
diff --git a/target/arm/tcg/cpu32.c b/target/arm/tcg/cpu32.c
|
|
|
|
index 47d2e8e781..0501c5ac27 100644
|
|
|
|
--- a/target/arm/tcg/cpu32.c
|
|
|
|
+++ b/target/arm/tcg/cpu32.c
|
|
|
|
@@ -94,6 +94,7 @@ void aa32_max_features(ARMCPU *cpu)
|
|
|
|
/* CPU models. These are not needed for the AArch64 linux-user build. */
|
|
|
|
#if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64)
|
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
|
|
|
static bool arm_v7m_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
|
|
|
{
|
|
|
|
@@ -1183,3 +1184,4 @@ static void arm_tcg_cpu_register_types(void)
|
|
|
|
type_init(arm_tcg_cpu_register_types)
|
|
|
|
|
|
|
|
#endif /* !CONFIG_USER_ONLY || !TARGET_AARCH64 */
|
2021-04-30 07:28:51 +00:00
|
|
|
+#endif /* disabled for RHEL */
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c
|
|
|
|
index 8019f00bc3..bf191113d8 100644
|
|
|
|
--- a/target/arm/tcg/cpu64.c
|
|
|
|
+++ b/target/arm/tcg/cpu64.c
|
|
|
|
@@ -27,6 +27,7 @@
|
|
|
|
#include "internals.h"
|
|
|
|
#include "cpregs.h"
|
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
static void aarch64_a35_initfn(Object *obj)
|
|
|
|
{
|
|
|
|
ARMCPU *cpu = ARM_CPU(obj);
|
|
|
|
@@ -106,6 +107,7 @@ static void aarch64_a35_initfn(Object *obj)
|
|
|
|
/* These values are the same with A53/A57/A72. */
|
|
|
|
define_cortex_a72_a57_a53_cp_reginfo(cpu);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static void cpu_max_get_sve_max_vq(Object *obj, Visitor *v, const char *name,
|
|
|
|
void *opaque, Error **errp)
|
|
|
|
@@ -195,6 +197,7 @@ static void cpu_max_get_l0gptsz(Object *obj, Visitor *v, const char *name,
|
|
|
|
static Property arm_cpu_lpa2_property =
|
|
|
|
DEFINE_PROP_BOOL("lpa2", ARMCPU, prop_lpa2, true);
|
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
static void aarch64_a55_initfn(Object *obj)
|
|
|
|
{
|
|
|
|
ARMCPU *cpu = ARM_CPU(obj);
|
|
|
|
@@ -699,6 +702,7 @@ static void aarch64_neoverse_v1_initfn(Object *obj)
|
|
|
|
aarch64_add_pauth_properties(obj);
|
|
|
|
aarch64_add_sve_properties(obj);
|
|
|
|
}
|
|
|
|
+#endif
|
2021-04-30 07:28:51 +00:00
|
|
|
|
|
|
|
/*
|
2023-08-29 12:37:47 +00:00
|
|
|
* -cpu max: a CPU with as many features enabled as our emulation supports.
|
|
|
|
@@ -883,6 +887,7 @@ void aarch64_max_tcg_initfn(Object *obj)
|
|
|
|
qdev_property_add_static(DEVICE(obj), &arm_cpu_lpa2_property);
|
|
|
|
}
|
2021-04-30 07:28:51 +00:00
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2023-08-29 12:37:47 +00:00
|
|
|
static const ARMCPUInfo aarch64_cpus[] = {
|
|
|
|
{ .name = "cortex-a35", .initfn = aarch64_a35_initfn },
|
|
|
|
{ .name = "cortex-a55", .initfn = aarch64_a55_initfn },
|
|
|
|
@@ -892,14 +897,17 @@ static const ARMCPUInfo aarch64_cpus[] = {
|
|
|
|
{ .name = "neoverse-n1", .initfn = aarch64_neoverse_n1_initfn },
|
|
|
|
{ .name = "neoverse-v1", .initfn = aarch64_neoverse_v1_initfn },
|
|
|
|
};
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static void aarch64_cpu_register_types(void)
|
|
|
|
{
|
2021-04-30 07:28:51 +00:00
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2023-08-29 12:37:47 +00:00
|
|
|
size_t i;
|
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(aarch64_cpus); ++i) {
|
|
|
|
aarch64_cpu_register(&aarch64_cpus[i]);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
type_init(aarch64_cpu_register_types)
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
|
2023-08-29 12:37:47 +00:00
|
|
|
index 7dbb47de64..69fddb05bc 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 */
|
2022-04-20 07:49:16 +00:00
|
|
|
/* PowerPC 405 family */
|
|
|
|
/* PowerPC 405 cores */
|
|
|
|
@@ -698,8 +699,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,
|
2022-04-20 07:49:16 +00:00
|
|
|
@@ -718,6 +721,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,
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -898,12 +902,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" },
|
2023-08-29 12:37:47 +00:00
|
|
|
@@ -913,12 +920,14 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
|
2021-12-16 07:06:10 +00:00
|
|
|
{ "power10", "power10_v2.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" },
|
2022-09-05 08:13:56 +00:00
|
|
|
#endif
|
2018-10-14 17:48:54 +00:00
|
|
|
{ "ppc32", "604" },
|
|
|
|
{ "ppc", "604" },
|
|
|
|
+#endif
|
2022-09-05 08:13:56 +00:00
|
|
|
|
2018-10-14 17:48:54 +00:00
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/target/s390x/cpu_models_sysemu.c b/target/s390x/cpu_models_sysemu.c
|
2023-04-20 06:33:14 +00:00
|
|
|
index 63981bf36b..87a4480c05 100644
|
2021-09-02 06:44:51 +00:00
|
|
|
--- a/target/s390x/cpu_models_sysemu.c
|
|
|
|
+++ b/target/s390x/cpu_models_sysemu.c
|
2022-09-05 08:13:56 +00:00
|
|
|
@@ -35,6 +35,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 */
|
2021-09-02 06:44:51 +00:00
|
|
|
diff --git a/target/s390x/kvm/kvm.c b/target/s390x/kvm/kvm.c
|
2023-08-29 12:37:47 +00:00
|
|
|
index a9e5880349..4b5df17983 100644
|
2021-09-02 06:44:51 +00:00
|
|
|
--- a/target/s390x/kvm/kvm.c
|
|
|
|
+++ b/target/s390x/kvm/kvm.c
|
2022-12-15 06:04:15 +00:00
|
|
|
@@ -2529,6 +2529,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) */
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/tests/qtest/arm-cpu-features.c b/tests/qtest/arm-cpu-features.c
|
|
|
|
index 3fc33fc24d..e5e4007e9f 100644
|
|
|
|
--- a/tests/qtest/arm-cpu-features.c
|
|
|
|
+++ b/tests/qtest/arm-cpu-features.c
|
|
|
|
@@ -441,8 +441,10 @@ static void test_query_cpu_model_expansion(const void *data)
|
|
|
|
assert_error(qts, "host", "The CPU type 'host' requires KVM", NULL);
|
|
|
|
|
|
|
|
/* Test expected feature presence/absence for some cpu types */
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
assert_has_feature_enabled(qts, "cortex-a15", "pmu");
|
|
|
|
assert_has_not_feature(qts, "cortex-a15", "aarch64");
|
|
|
|
+#endif /* disabled for RHEL */
|
|
|
|
|
|
|
|
/* Enabling and disabling pmu should always work. */
|
|
|
|
assert_has_feature_enabled(qts, "max", "pmu");
|
|
|
|
@@ -459,6 +461,7 @@ static void test_query_cpu_model_expansion(const void *data)
|
|
|
|
assert_has_feature_enabled(qts, "cortex-a57", "pmu");
|
|
|
|
assert_has_feature_enabled(qts, "cortex-a57", "aarch64");
|
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
assert_has_feature_enabled(qts, "a64fx", "pmu");
|
|
|
|
assert_has_feature_enabled(qts, "a64fx", "aarch64");
|
|
|
|
/*
|
|
|
|
@@ -471,6 +474,7 @@ static void test_query_cpu_model_expansion(const void *data)
|
|
|
|
"{ 'sve384': true }");
|
|
|
|
assert_error(qts, "a64fx", "cannot enable sve640",
|
|
|
|
"{ 'sve640': true }");
|
|
|
|
+#endif /* disabled for RHEL */
|
|
|
|
|
|
|
|
sve_tests_default(qts, "max");
|
|
|
|
pauth_tests_default(qts, "max");
|