@samitouri / QOSamiQemu / commits / a861ffef23

hw/core/machine: Remove the hw_compat_3_1[] array

The hw_compat_3_1[] array was only used by the pc-q35-3.1 and pc-i440fx-3.1 machines, which got removed. Remove it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20260307152635.83893-9-philmd@linaro.org>

Philippe Mathieu-Daudé committed May 1, 2025 at 23:31 UTC a861ffef237e81521a50c17018dd444eb8425200
2 files changed -20
hw/core/machine.c
-17
@@ -221,23 +221,6 @@ GlobalProperty hw_compat_4_0[] = {
221 };
222 const size_t hw_compat_4_0_len = G_N_ELEMENTS(hw_compat_4_0);
223
224 -GlobalProperty hw_compat_3_1[] = {
225 - { "pcie-root-port", "x-speed", "2_5" },
226 - { "pcie-root-port", "x-width", "1" },
227 - { "memory-backend-file", "x-use-canonical-path-for-ramblock-id", "true" },
228 - { "memory-backend-memfd", "x-use-canonical-path-for-ramblock-id", "true" },
229 - { "tpm-crb", "ppi", "false" },
230 - { "tpm-tis", "ppi", "false" },
231 - { "usb-kbd", "serial", "42" },
232 - { "usb-mouse", "serial", "42" },
233 - { "usb-tablet", "serial", "42" },
234 - { "virtio-blk-device", "discard", "false" },
235 - { "virtio-blk-device", "write-zeroes", "false" },
236 - { "virtio-balloon-device", "qemu-4-0-config-size", "false" },
237 - { "pcie-root-port-base", "disable-acs", "true" }, /* Added in 4.1 */
238 -};
239 -const size_t hw_compat_3_1_len = G_N_ELEMENTS(hw_compat_3_1);
240 -
224 MachineState *current_machine;
225
226 static char *machine_get_kernel(Object *obj, Error **errp)
include/hw/core/boards.h
-3
@@ -867,7 +867,4 @@ extern const size_t hw_compat_4_1_len;
867 extern GlobalProperty hw_compat_4_0[];
868 extern const size_t hw_compat_4_0_len;
869
870 -extern GlobalProperty hw_compat_3_1[];
871 -extern const size_t hw_compat_3_1_len;
872 -
870 #endif