2024-09-10 06:42:37 +00:00
|
|
|
From 003f37e17fb03b8977effd968426a0aeb5855028 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-10-16 10:42:05 +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>
|
2024-09-10 06:42:37 +00:00
|
|
|
|
2018-10-14 17:48:54 +00:00
|
|
|
---
|
2024-09-10 06:42:37 +00:00
|
|
|
Rebase notes (9.1.0 rc0):
|
|
|
|
- Return value added for kvm_s390_apply_cpu_model
|
|
|
|
- Added new USB_HID and USB_HUB options
|
|
|
|
|
|
|
|
Rebase notes (9.1.0 rc1):
|
|
|
|
- Fixing valid_cpu_types preprocessing
|
|
|
|
|
|
|
|
Rebase notes (9.1.0 rc4):
|
|
|
|
- Moved x86 cpu deprecation from x86 machine type patch
|
|
|
|
- Removed unnecessary chunk in cirrus_vga.c
|
|
|
|
- Not needed hack removal of cpu-v7m.c from build
|
|
|
|
|
|
|
|
Rebase notes (9.1.0):
|
|
|
|
- Remove ppc64 device configuration
|
|
|
|
- Remove unnecessary chunks
|
|
|
|
- Removed CONFIG_VHOST_USER_SCMI and CONFIG_VHOST_USER_SND from some archs
|
|
|
|
|
|
|
|
Merged commits (9.1.0 rc0):
|
|
|
|
- f24c7a1fee Disable FDC devices
|
|
|
|
- fe8c6cb1ce Disable vga-cirrus device
|
|
|
|
- fccd117a12 Enable vhost-user-snd-pci device
|
|
|
|
- c0b40cc648 target/cpu-models/x86: Remove the existing deprecated CPU models on c10s
|
|
|
|
- ce42b3da0e x86/cpu: deprecate cpu models that do not support x86-64-v3
|
|
|
|
- 01ffa96c3b target/s390x/cpu_models: Disable everything up to the z12 CPU model
|
|
|
|
- cd57d17e3c target/s390x: Revert the old s390x CPU model disablement code
|
|
|
|
- 42af7b3ad5 Enable vhost-user-scmi devices
|
|
|
|
|
|
|
|
Merged commits (9.1.0 rc4):
|
|
|
|
- aa374ce5ea x86/cpu: update deprecation string to match lowest undeprecated model
|
|
|
|
---
|
|
|
|
.distro/qemu-kvm.spec.template | 20 +--
|
|
|
|
.../aarch64-softmmu/aarch64-rh-devices.mak | 46 +++++++
|
2021-09-02 06:44:51 +00:00
|
|
|
configs/devices/rh-virtio.mak | 10 ++
|
2024-05-14 06:50:03 +00:00
|
|
|
.../s390x-softmmu/s390x-rh-devices.mak | 19 +++
|
2024-09-10 06:42:37 +00:00
|
|
|
.../x86_64-softmmu/x86_64-rh-devices.mak | 114 ++++++++++++++++++
|
|
|
|
hw/arm/virt.c | 4 +
|
2024-01-02 12:52:01 +00:00
|
|
|
hw/cxl/meson.build | 3 +-
|
2021-01-05 05:59:21 +00:00
|
|
|
hw/ide/piix.c | 5 +-
|
|
|
|
hw/input/pckbd.c | 2 +
|
|
|
|
hw/net/e1000.c | 2 +
|
|
|
|
hw/usb/meson.build | 2 +-
|
2024-05-14 06:50:03 +00:00
|
|
|
hw/virtio/meson.build | 6 +-
|
2023-08-29 12:37:47 +00:00
|
|
|
target/arm/arm-qmp-cmds.c | 2 +
|
2024-01-02 12:52:01 +00:00
|
|
|
target/arm/cpu.c | 4 +
|
|
|
|
target/arm/cpu.h | 3 +
|
2023-08-29 12:37:47 +00:00
|
|
|
target/arm/cpu64.c | 12 +-
|
|
|
|
target/arm/tcg/cpu32.c | 2 +
|
|
|
|
target/arm/tcg/cpu64.c | 8 ++
|
2024-05-14 06:50:03 +00:00
|
|
|
target/arm/tcg/meson.build | 2 +-
|
2024-09-10 06:42:37 +00:00
|
|
|
target/i386/cpu.c | 19 +++
|
|
|
|
target/s390x/cpu_models.c | 2 +-
|
2023-08-29 12:37:47 +00:00
|
|
|
tests/qtest/arm-cpu-features.c | 4 +
|
2024-09-10 06:42:37 +00:00
|
|
|
22 files changed, 275 insertions(+), 16 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/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
|
2024-09-10 06:42:37 +00:00
|
|
|
index 0000000000..58075e2812
|
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
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -0,0 +1,46 @@
|
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
|
2024-09-10 06:42:37 +00:00
|
|
|
+CONFIG_USB_HUB=y
|
|
|
|
+CONFIG_USB_HID=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
|
2024-05-14 06:50:03 +00:00
|
|
|
+CONFIG_IOMMUFD=y
|
2024-09-10 06:42:37 +00:00
|
|
|
+CONFIG_VHOST_USER_SND=y
|
|
|
|
+CONFIG_VHOST_USER_SCMI=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
|
2024-05-14 06:50:03 +00:00
|
|
|
index 0000000000..24cf6dbd03
|
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
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -0,0 +1,19 @@
|
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
|
2024-05-14 06:50:03 +00:00
|
|
|
+CONFIG_IOMMUFD=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
|
2024-09-10 06:42:37 +00:00
|
|
|
index 0000000000..45a8a15291
|
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
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -0,0 +1,114 @@
|
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
|
2024-09-10 06:42:37 +00:00
|
|
|
+#CONFIG_FDC=y
|
|
|
|
+#CONFIG_FDC_SYSBUS=y
|
|
|
|
+#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
|
2024-05-14 06:50:03 +00:00
|
|
|
+CONFIG_IDE_DEV=y
|
|
|
|
+CONFIG_IDE_BUS=y
|
2024-01-02 12:52:01 +00:00
|
|
|
+CONFIG_IGB_PCI_EXPRESS=y
|
2019-05-07 21:00:36 +00:00
|
|
|
+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_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
|
2024-09-10 06:42:37 +00:00
|
|
|
+CONFIG_USB_HUB=y
|
|
|
|
+CONFIG_USB_HID=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
|
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
|
2024-05-14 06:50:03 +00:00
|
|
|
+CONFIG_IOMMUFD=y
|
2024-09-10 06:42:37 +00:00
|
|
|
+CONFIG_VHOST_USER_SND=y
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
|
2024-09-10 06:42:37 +00:00
|
|
|
index 687fe0bb8b..eea7d2d038 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/hw/arm/virt.c
|
|
|
|
+++ b/hw/arm/virt.c
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -3032,6 +3032,7 @@ static void virt_machine_class_init(ObjectClass *oc, void *data)
|
2024-05-14 06:50:03 +00:00
|
|
|
MachineClass *mc = MACHINE_CLASS(oc);
|
|
|
|
HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc);
|
|
|
|
static const char * const valid_cpu_types[] = {
|
2023-08-29 12:37:47 +00:00
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
|
|
|
#ifdef CONFIG_TCG
|
2024-05-14 06:50:03 +00:00
|
|
|
ARM_CPU_TYPE_NAME("cortex-a7"),
|
|
|
|
ARM_CPU_TYPE_NAME("cortex-a15"),
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -3047,8 +3048,11 @@ static void virt_machine_class_init(ObjectClass *oc, void *data)
|
|
|
|
ARM_CPU_TYPE_NAME("neoverse-n2"),
|
|
|
|
#endif /* TARGET_AARCH64 */
|
2024-05-14 06:50:03 +00:00
|
|
|
#endif /* CONFIG_TCG */
|
2024-09-10 06:42:37 +00:00
|
|
|
+#endif /* disabled for RHEL */
|
2024-05-14 06:50:03 +00:00
|
|
|
#ifdef TARGET_AARCH64
|
2024-09-10 06:42:37 +00:00
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2024-05-14 06:50:03 +00:00
|
|
|
ARM_CPU_TYPE_NAME("cortex-a53"),
|
2023-08-29 12:37:47 +00:00
|
|
|
+#endif /* disabled for RHEL */
|
2024-05-14 06:50:03 +00:00
|
|
|
ARM_CPU_TYPE_NAME("cortex-a57"),
|
|
|
|
#if defined(CONFIG_KVM) || defined(CONFIG_HVF)
|
|
|
|
ARM_CPU_TYPE_NAME("host"),
|
2024-01-02 12:52:01 +00:00
|
|
|
diff --git a/hw/cxl/meson.build b/hw/cxl/meson.build
|
2024-05-14 06:50:03 +00:00
|
|
|
index 3e375f61a9..613adb3ebb 100644
|
2024-01-02 12:52:01 +00:00
|
|
|
--- a/hw/cxl/meson.build
|
|
|
|
+++ b/hw/cxl/meson.build
|
|
|
|
@@ -6,7 +6,8 @@ system_ss.add(when: 'CONFIG_CXL',
|
|
|
|
'cxl-host.c',
|
|
|
|
'cxl-cdat.c',
|
|
|
|
'cxl-events.c',
|
|
|
|
- 'switch-mailbox-cci.c',
|
|
|
|
+# Disabled for 8.2.0 rebase for RHEL 9.4.0
|
|
|
|
+# 'switch-mailbox-cci.c',
|
|
|
|
),
|
|
|
|
if_false: files(
|
|
|
|
'cxl-host-stubs.c',
|
2018-10-14 17:48:54 +00:00
|
|
|
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
|
2024-05-14 06:50:03 +00:00
|
|
|
index 80efc633d3..9cb82b8eea 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/ide/piix.c
|
|
|
|
+++ b/hw/ide/piix.c
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -191,7 +191,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 = {
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -215,6 +216,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
|
2024-05-14 06:50:03 +00:00
|
|
|
index 74f10b640f..2e85ecf476 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/input/pckbd.c
|
|
|
|
+++ b/hw/input/pckbd.c
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -952,6 +952,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 = {
|
|
|
|
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
|
2024-09-10 06:42:37 +00:00
|
|
|
index 5012b96464..b435e54228 100644
|
2018-10-14 17:48:54 +00:00
|
|
|
--- a/hw/net/e1000.c
|
|
|
|
+++ b/hw/net/e1000.c
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -1746,6 +1746,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,
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -1758,6 +1759,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)
|
2020-11-13 13:09:35 +00:00
|
|
|
diff --git a/hw/usb/meson.build b/hw/usb/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
index d7de1003e3..1cdc0a1ba0 100644
|
2020-11-13 13:09:35 +00:00
|
|
|
--- a/hw/usb/meson.build
|
|
|
|
+++ b/hw/usb/meson.build
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -55,7 +55,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
|
|
|
|
2024-01-02 12:52:01 +00:00
|
|
|
diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
index 621fc65454..c38bdd6fa4 100644
|
2024-01-02 12:52:01 +00:00
|
|
|
--- a/hw/virtio/meson.build
|
|
|
|
+++ b/hw/virtio/meson.build
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -20,7 +20,8 @@ if have_vhost
|
|
|
|
system_virtio_ss.add(files('vhost-user-base.c'))
|
|
|
|
|
|
|
|
# MMIO Stubs
|
2024-01-02 12:52:01 +00:00
|
|
|
- system_virtio_ss.add(files('vhost-user-device.c'))
|
|
|
|
+# Disabled for 8.2.0 rebase for RHEL 9.4.0
|
|
|
|
+# system_virtio_ss.add(files('vhost-user-device.c'))
|
2024-05-14 06:50:03 +00:00
|
|
|
system_virtio_ss.add(when: 'CONFIG_VHOST_USER_GPIO', if_true: files('vhost-user-gpio.c'))
|
|
|
|
system_virtio_ss.add(when: 'CONFIG_VHOST_USER_I2C', if_true: files('vhost-user-i2c.c'))
|
|
|
|
system_virtio_ss.add(when: 'CONFIG_VHOST_USER_RNG', if_true: files('vhost-user-rng.c'))
|
|
|
|
@@ -28,7 +29,8 @@ if have_vhost
|
|
|
|
system_virtio_ss.add(when: 'CONFIG_VHOST_USER_INPUT', if_true: files('vhost-user-input.c'))
|
|
|
|
|
|
|
|
# PCI Stubs
|
|
|
|
- system_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('vhost-user-device-pci.c'))
|
|
|
|
+# Disabled for 8.2.0 rebase for RHEL 9.4.0
|
2024-01-02 12:52:01 +00:00
|
|
|
+# system_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('vhost-user-device-pci.c'))
|
2024-05-14 06:50:03 +00:00
|
|
|
system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_GPIO'],
|
|
|
|
if_true: files('vhost-user-gpio-pci.c'))
|
|
|
|
system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_I2C'],
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/target/arm/arm-qmp-cmds.c b/target/arm/arm-qmp-cmds.c
|
2024-05-14 06:50:03 +00:00
|
|
|
index 3cc8cc738b..6f21fea1f5 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/target/arm/arm-qmp-cmds.c
|
|
|
|
+++ b/target/arm/arm-qmp-cmds.c
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -223,6 +223,7 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
|
2023-08-29 12:37:47 +00:00
|
|
|
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;
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -231,6 +232,7 @@ static void arm_cpu_add_definition(gpointer data, gpointer user_data)
|
|
|
|
info = g_malloc0(sizeof(*info));
|
|
|
|
info->name = cpu_model_from_type(typename);
|
2023-08-29 12:37:47 +00:00
|
|
|
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.c b/target/arm/cpu.c
|
2024-09-10 06:42:37 +00:00
|
|
|
index 19191c2391..465f423d25 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/target/arm/cpu.c
|
|
|
|
+++ b/target/arm/cpu.c
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -2726,6 +2726,10 @@ static void cpu_register_class_init(ObjectClass *oc, void *data)
|
2023-08-29 12:37:47 +00:00
|
|
|
|
|
|
|
acc->info = data;
|
2024-01-02 12:52:01 +00:00
|
|
|
cc->gdb_core_xml_file = "arm-core.xml";
|
2024-05-14 06:50:03 +00:00
|
|
|
+
|
2023-08-29 12:37:47 +00:00
|
|
|
+ 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
|
2024-09-10 06:42:37 +00:00
|
|
|
index 9a3fd59562..1261eae94d 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/target/arm/cpu.h
|
|
|
|
+++ b/target/arm/cpu.h
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -35,6 +35,8 @@
|
2023-08-29 12:37:47 +00:00
|
|
|
#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
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -1110,6 +1112,7 @@ typedef struct ARMCPUInfo {
|
2024-01-02 12:52:01 +00:00
|
|
|
const char *name;
|
|
|
|
void (*initfn)(Object *obj);
|
|
|
|
void (*class_init)(ObjectClass *oc, void *data);
|
|
|
|
+ const char *deprecation_note;
|
|
|
|
} ARMCPUInfo;
|
|
|
|
|
|
|
|
/**
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
|
2024-09-10 06:42:37 +00:00
|
|
|
index 262a1d6c0b..800514d3fc 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/target/arm/cpu64.c
|
|
|
|
+++ b/target/arm/cpu64.c
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -653,6 +653,7 @@ static void aarch64_a57_initfn(Object *obj)
|
2023-08-29 12:37:47 +00:00
|
|
|
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);
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -710,6 +711,7 @@ static void aarch64_a53_initfn(Object *obj)
|
2023-08-29 12:37:47 +00:00
|
|
|
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
|
|
|
{
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -748,8 +750,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 },
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -820,8 +825,13 @@ static void aarch64_cpu_instance_init(Object *obj)
|
2023-08-29 12:37:47 +00:00
|
|
|
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
|
2024-09-10 06:42:37 +00:00
|
|
|
index 20c2737f17..7e66fb6f14 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/target/arm/tcg/cpu32.c
|
|
|
|
+++ b/target/arm/tcg/cpu32.c
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -120,6 +120,7 @@ void aa32_max_features(ARMCPU *cpu)
|
2024-05-14 06:50:03 +00:00
|
|
|
cpu->isar.id_dfr1 = t;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2023-08-29 12:37:47 +00:00
|
|
|
/* CPU models. These are not needed for the AArch64 linux-user build. */
|
|
|
|
#if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64)
|
|
|
|
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -1066,3 +1067,4 @@ static void arm_tcg_cpu_register_types(void)
|
2023-08-29 12:37:47 +00:00
|
|
|
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
|
2024-09-10 06:42:37 +00:00
|
|
|
index fe232eb306..2678047488 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/target/arm/tcg/cpu64.c
|
|
|
|
+++ b/target/arm/tcg/cpu64.c
|
2024-01-02 12:52:01 +00:00
|
|
|
@@ -29,6 +29,7 @@
|
|
|
|
#include "cpu-features.h"
|
2023-08-29 12:37:47 +00:00
|
|
|
#include "cpregs.h"
|
|
|
|
|
|
|
|
+#if 0 /* Disabled for Red Hat Enterprise Linux */
|
2024-01-02 12:52:01 +00:00
|
|
|
static uint64_t make_ccsidr64(unsigned assoc, unsigned linesize,
|
|
|
|
unsigned cachesize)
|
2023-08-29 12:37:47 +00:00
|
|
|
{
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -135,6 +136,7 @@ static void aarch64_a35_initfn(Object *obj)
|
2023-08-29 12:37:47 +00:00
|
|
|
/* 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)
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -224,6 +226,7 @@ static void cpu_max_get_l0gptsz(Object *obj, Visitor *v, const char *name,
|
2023-08-29 12:37:47 +00:00
|
|
|
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);
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -1074,6 +1077,7 @@ static void aarch64_neoverse_n2_initfn(Object *obj)
|
2023-08-29 12:37:47 +00:00
|
|
|
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.
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -1295,6 +1299,7 @@ void aarch64_max_tcg_initfn(Object *obj)
|
2023-08-29 12:37:47 +00:00
|
|
|
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 },
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -1306,14 +1311,17 @@ static const ARMCPUInfo aarch64_cpus[] = {
|
2023-08-29 12:37:47 +00:00
|
|
|
{ .name = "neoverse-v1", .initfn = aarch64_neoverse_v1_initfn },
|
2024-01-02 12:52:01 +00:00
|
|
|
{ .name = "neoverse-n2", .initfn = aarch64_neoverse_n2_initfn },
|
2023-08-29 12:37:47 +00:00
|
|
|
};
|
|
|
|
+#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)
|
2024-05-14 06:50:03 +00:00
|
|
|
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
index 508932a249..1293647501 100644
|
2024-05-14 06:50:03 +00:00
|
|
|
--- a/target/arm/tcg/meson.build
|
|
|
|
+++ b/target/arm/tcg/meson.build
|
2024-09-10 06:42:37 +00:00
|
|
|
@@ -58,5 +58,5 @@ arm_system_ss.add(files(
|
2024-05-14 06:50:03 +00:00
|
|
|
'psci.c',
|
|
|
|
))
|
|
|
|
|
|
|
|
-arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c'))
|
|
|
|
+#arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c'))
|
|
|
|
arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c'))
|
2024-09-10 06:42:37 +00:00
|
|
|
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
|
index 85ef7452c0..34e0ce5e62 100644
|
|
|
|
--- a/target/i386/cpu.c
|
|
|
|
+++ b/target/i386/cpu.c
|
|
|
|
@@ -2411,9 +2411,13 @@ static const CPUCaches epyc_genoa_cache_info = {
|
|
|
|
* PT in VMX operation
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#define RHEL_CPU_DEPRECATION \
|
|
|
|
+ "use at least 'Haswell' / 'EPYC', or 'host' / 'max'"
|
2018-10-14 17:48:54 +00:00
|
|
|
+
|
2024-09-10 06:42:37 +00:00
|
|
|
static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
{
|
|
|
|
.name = "qemu64",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 0xd,
|
|
|
|
.vendor = CPUID_VENDOR_AMD,
|
|
|
|
.family = 15,
|
|
|
|
@@ -2432,6 +2436,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
.xlevel = 0x8000000A,
|
|
|
|
.model_id = "QEMU Virtual CPU version " QEMU_HW_VERSION,
|
|
|
|
},
|
|
|
|
+#if 0 // Deprecated CPU models are removed in RHEL-10
|
|
|
|
{
|
|
|
|
.name = "phenom",
|
|
|
|
.level = 5,
|
|
|
|
@@ -2796,8 +2801,10 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
.xlevel = 0x80000008,
|
|
|
|
.model_id = "Intel Core 2 Duo P9xxx (Penryn Class Core 2)",
|
|
|
|
},
|
|
|
|
+#endif // Removal of deprecated CPU models in RHEL-10
|
|
|
|
{
|
|
|
|
.name = "Nehalem",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 11,
|
|
|
|
.vendor = CPUID_VENDOR_INTEL,
|
|
|
|
.family = 6,
|
|
|
|
@@ -2875,6 +2882,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "Westmere",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 11,
|
|
|
|
.vendor = CPUID_VENDOR_INTEL,
|
|
|
|
.family = 6,
|
|
|
|
@@ -2956,6 +2964,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "SandyBridge",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 0xd,
|
|
|
|
.vendor = CPUID_VENDOR_INTEL,
|
|
|
|
.family = 6,
|
|
|
|
@@ -3042,6 +3051,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "IvyBridge",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 0xd,
|
|
|
|
.vendor = CPUID_VENDOR_INTEL,
|
|
|
|
.family = 6,
|
|
|
|
@@ -4469,6 +4479,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "Denverton",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 21,
|
|
|
|
.vendor = CPUID_VENDOR_INTEL,
|
|
|
|
.family = 6,
|
|
|
|
@@ -4579,6 +4590,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "Snowridge",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 27,
|
|
|
|
.vendor = CPUID_VENDOR_INTEL,
|
|
|
|
.family = 6,
|
|
|
|
@@ -4760,8 +4772,10 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
.xlevel = 0x80000008,
|
|
|
|
.model_id = "Intel Xeon Phi Processor (Knights Mill)",
|
|
|
|
},
|
|
|
|
+#if 0 // Deprecated CPU models are removed in RHEL-10
|
|
|
|
{
|
|
|
|
.name = "Opteron_G1",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 5,
|
|
|
|
.vendor = CPUID_VENDOR_AMD,
|
|
|
|
.family = 15,
|
|
|
|
@@ -4782,6 +4796,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "Opteron_G2",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 5,
|
|
|
|
.vendor = CPUID_VENDOR_AMD,
|
|
|
|
.family = 15,
|
|
|
|
@@ -4804,6 +4819,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "Opteron_G3",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 5,
|
|
|
|
.vendor = CPUID_VENDOR_AMD,
|
|
|
|
.family = 16,
|
|
|
|
@@ -4827,8 +4843,10 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
.xlevel = 0x80000008,
|
|
|
|
.model_id = "AMD Opteron 23xx (Gen 3 Class Opteron)",
|
|
|
|
},
|
|
|
|
+#endif
|
|
|
|
{
|
|
|
|
.name = "Opteron_G4",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 0xd,
|
|
|
|
.vendor = CPUID_VENDOR_AMD,
|
|
|
|
.family = 21,
|
|
|
|
@@ -4861,6 +4879,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.name = "Opteron_G5",
|
|
|
|
+ .deprecation_note = RHEL_CPU_DEPRECATION,
|
|
|
|
.level = 0xd,
|
|
|
|
.vendor = CPUID_VENDOR_AMD,
|
|
|
|
.family = 21,
|
|
|
|
diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c
|
|
|
|
index a27f4b6f79..798c18f940 100644
|
|
|
|
--- a/target/s390x/cpu_models.c
|
|
|
|
+++ b/target/s390x/cpu_models.c
|
|
|
|
@@ -72,7 +72,6 @@ static S390CPUDef s390_cpu_defs[] = {
|
|
|
|
CPUDEF_INIT(0x2096, 9, 2, 40, 0x00000000U, "z9BC", "IBM System z9 BC GA1"),
|
|
|
|
CPUDEF_INIT(0x2094, 9, 3, 40, 0x00000000U, "z9EC.3", "IBM System z9 EC GA3"),
|
|
|
|
CPUDEF_INIT(0x2096, 9, 3, 40, 0x00000000U, "z9BC.2", "IBM System z9 BC GA2"),
|
|
|
|
-#endif
|
|
|
|
CPUDEF_INIT(0x2097, 10, 1, 43, 0x00000000U, "z10EC", "IBM System z10 EC GA1"),
|
|
|
|
CPUDEF_INIT(0x2097, 10, 2, 43, 0x00000000U, "z10EC.2", "IBM System z10 EC GA2"),
|
|
|
|
CPUDEF_INIT(0x2098, 10, 2, 43, 0x00000000U, "z10BC", "IBM System z10 BC GA1"),
|
|
|
|
@@ -81,6 +80,7 @@ static S390CPUDef s390_cpu_defs[] = {
|
|
|
|
CPUDEF_INIT(0x2817, 11, 1, 44, 0x08000000U, "z196", "IBM zEnterprise 196 GA1"),
|
|
|
|
CPUDEF_INIT(0x2817, 11, 2, 44, 0x08000000U, "z196.2", "IBM zEnterprise 196 GA2"),
|
|
|
|
CPUDEF_INIT(0x2818, 11, 2, 44, 0x08000000U, "z114", "IBM zEnterprise 114 GA1"),
|
|
|
|
+#endif
|
|
|
|
CPUDEF_INIT(0x2827, 12, 1, 44, 0x08000000U, "zEC12", "IBM zEnterprise EC12 GA1"),
|
|
|
|
CPUDEF_INIT(0x2827, 12, 2, 44, 0x08000000U, "zEC12.2", "IBM zEnterprise EC12 GA2"),
|
|
|
|
CPUDEF_INIT(0x2828, 12, 2, 44, 0x08000000U, "zBC12", "IBM zEnterprise BC12 GA1"),
|
2023-08-29 12:37:47 +00:00
|
|
|
diff --git a/tests/qtest/arm-cpu-features.c b/tests/qtest/arm-cpu-features.c
|
2024-09-10 06:42:37 +00:00
|
|
|
index cfd6f77353..3016e6233c 100644
|
2023-08-29 12:37:47 +00:00
|
|
|
--- a/tests/qtest/arm-cpu-features.c
|
|
|
|
+++ b/tests/qtest/arm-cpu-features.c
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -452,8 +452,10 @@ static void test_query_cpu_model_expansion(const void *data)
|
2023-08-29 12:37:47 +00:00
|
|
|
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");
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -470,6 +472,7 @@ static void test_query_cpu_model_expansion(const void *data)
|
2023-08-29 12:37:47 +00:00
|
|
|
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");
|
|
|
|
/*
|
2024-05-14 06:50:03 +00:00
|
|
|
@@ -482,6 +485,7 @@ static void test_query_cpu_model_expansion(const void *data)
|
2023-08-29 12:37:47 +00:00
|
|
|
"{ '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");
|
2023-10-16 10:42:05 +00:00
|
|
|
--
|
|
|
|
2.39.3
|
|
|
|
|