@samitouri / QOSamiQemu / commits / 6b5be4336a

hw/core/machine: Remove hw_compat_2_9[] array

The hw_compat_2_9[] array was only used by the pc-q35-2.9 and pc-i440fx-2.9 machines, which got removed. Remove it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250501210456.89071-16-philmd@linaro.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260225092024.794595-13-thuth@redhat.com>

Philippe Mathieu-Daudé committed Feb 25, 2026 at 10:20 UTC 6b5be4336a580eca44c91a55e7b9f53673e53f1a
2 files changed -11
hw/core/machine.c
-8
@@ -264,14 +264,6 @@ GlobalProperty hw_compat_2_10[] = {
264 };
265 const size_t hw_compat_2_10_len = G_N_ELEMENTS(hw_compat_2_10);
266
267 -GlobalProperty hw_compat_2_9[] = {
268 - { "pci-bridge", "shpc", "off" },
269 - { "intel-iommu", "pt", "off" },
270 - { "virtio-net-device", "x-mtu-bypass-backend", "off" },
271 - { "pcie-root-port", "x-migrate-msix", "false" },
272 -};
273 -const size_t hw_compat_2_9_len = G_N_ELEMENTS(hw_compat_2_9);
274 -
267 MachineState *current_machine;
268
269 static char *machine_get_kernel(Object *obj, Error **errp)
include/hw/core/boards.h
-3
@@ -883,7 +883,4 @@ extern const size_t hw_compat_2_11_len;
883 extern GlobalProperty hw_compat_2_10[];
884 extern const size_t hw_compat_2_10_len;
885
886 -extern GlobalProperty hw_compat_2_9[];
887 -extern const size_t hw_compat_2_9_len;
888 -
886 #endif