Skip to content

hw/i386/pc: Remove deprecated 2.8 and 2.9 PC machines

Thomas Huth qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest16 patches 11 repliesIn review

Changes in v2 from the cover letter

- Rebased all patches to current master, and fixed the contextual conflicts
- Added Igor's Reviewed-bys
- Dropped the "hw/southbridge/ich9: Remove ICH9_LPC_SMI_F_BROADCAST_BIT definition" patch since the code is still required (the guest can decide whether to use this feature or not)
- Dropped the two "hw/nvram/fw_cfg" patches since Igor mentioned that it still might be useful to keep this configuration knob
- Fix "hw/pci/pcie: Remove QEMU_PCIE_EXTCAP_INIT definition" according to Igor's review
- Adjusted "hw/i386/x86-iommu: Remove X86IOMMUState::pt_supported field":
The problematic hunk has already been merged in upstream, so I dropped it from this patch.
- Added the final patch to drop a qtest that required this machine

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16hw/i386/pc: Remove deprecated pc-q35-2.8 and pc-i440fx-2.8 machineshw/i386/pc_piix.c hw/i386/pc_q35.c+0 -180 replies
2/16hw/i386/pc: Remove pc_compat_2_8[] arrayhw/i386/pc.c include/hw/i386/pc.h+0 -120 replies
3/16hw/i386/kvm: Remove KVMClockState::mach_use_reliable_get_clock fieldhw/i386/kvm/clock.c+0 -180 replies
4/16hw/core/machine: Remove hw_compat_2_8[] arrayhw/core/machine.c include/hw/core/boards.h+0 -170 replies
5/16hw/block/pflash: Remove PFlashCFI01::old_multiple_chip_handling fieldhw/block/pflash_cfi01.c+3 -110 replies
6/16hw/pci/pcie: Remove QEMU_PCIE_EXTCAP_INIT definitionhw/pci/pci.c hw/pci/pcie.c include/hw/pci/pci.h+2 -80 replies
7/16hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_INIT_DEVERR definitionhw/virtio/virtio-pci.c include/hw/virtio/virtio-pci.h+2 -100 replies
8/16hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_INIT_LNKCTL definitionhw/virtio/virtio-pci.c include/hw/virtio/virtio-pci.h+2 -100 replies
9/16hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_INIT_PM definitionhw/virtio/virtio-pci.c include/hw/virtio/virtio-pci.h+5 -180 replies
10/16hw/i386/pc: Remove deprecated pc-q35-2.9 and pc-i440fx-2.9 machineshw/i386/pc_piix.c hw/i386/pc_q35.c+0 -180 replies
11/16hw/i386/pc: Remove pc_compat_2_9[] arrayhw/i386/pc.c include/hw/i386/pc.h+0 -80 replies
12/16hw/core/machine: Remove hw_compat_2_9[] arrayhw/core/machine.c include/hw/core/boards.h+0 -110 replies
13/16hw/net/virtio-net: Remove VirtIONet::mtu_bypass_backend fieldhw/net/virtio-net.c include/hw/virtio/virtio-net.h+2 -70 replies
14/16hw/pci-bridge/gen_pcie_rp: Remove GenPCIERootPort::migrate_msix fieldhw/pci-bridge/gen_pcie_root_port.c+2 -140 replies
15/16hw/i386/x86-iommu: Remove X86IOMMUState::pt_supported fieldhw/i386/intel_iommu.c hw/i386/x86-iommu.c include/hw/i386/x86-iommu.h+2 -131 reply
16/16tests/qtest/test-x86-cpuid-compat: Remove the test with the i440fx-2.9 machinetests/qtest/test-x86-cpuid-compat.c+0 -112 replies

Reviews trailers per patch

15 of 16 patches have a Reviewed-by or Acked-by.

PatchIgor MammedovThomas HuthFabiano Rosas
1/16R-b
2/16R-b
3/16R-b
4/16R-b
5/16R-b R-b
6/16
7/16R-b
8/16R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16R-b
14/16R-b
15/16R-b
16/16R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/16] hw/i386/pc: Remove deprecated 2.8 and 2.9 PC machines

The -2.8 and -2.9 machine types of the i440fx and q35 machines are older than 6 years, so according to our support policy we can remove them, together with a lot of the compatibility knobs that they were using.

This is a respin of Philippe's original series here:

https://lore.kernel.org/qemu-devel/[email protected]

The following three patches still need a review:

- hw/pci/pcie: Remove QEMU_PCIE_EXTCAP_INIT definition
- hw/i386/x86-iommu: Remove X86IOMMUState::pt_supported field
- tests/qtest/test-x86-cpuid-compat: Remove the test with the i440fx-2.9 machine

Changes in v2:

- Rebased all patches to current master, and fixed the contextual conflicts
- Added Igor's Reviewed-bys
- Dropped the "hw/southbridge/ich9: Remove ICH9_LPC_SMI_F_BROADCAST_BIT definition" patch since the code is still required (the guest can decide whether to use this feature or not)
- Dropped the two "hw/nvram/fw_cfg" patches since Igor mentioned that it still might be useful to keep this configuration knob
- Fix "hw/pci/pcie: Remove QEMU_PCIE_EXTCAP_INIT definition" according to Igor's review
- Adjusted "hw/i386/x86-iommu: Remove X86IOMMUState::pt_supported field":
The problematic hunk has already been merged in upstream, so I dropped it from this patch.
- Added the final patch to drop a qtest that required this machine

Philippe Mathieu-Daudé (15):
hw/i386/pc: Remove deprecated pc-q35-2.8 and pc-i440fx-2.8 machines hw/i386/pc: Remove pc_compat_2_8[] array
hw/i386/kvm: Remove KVMClockState::mach_use_reliable_get_clock field hw/core/machine: Remove hw_compat_2_8[] array hw/block/pflash: Remove PFlashCFI01::old_multiple_chip_handling field hw/pci/pcie: Remove QEMU_PCIE_EXTCAP_INIT definition hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_INIT_DEVERR definition hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_INIT_LNKCTL definition hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_INIT_PM definition hw/i386/pc: Remove deprecated pc-q35-2.9 and pc-i440fx-2.9 machines hw/i386/pc: Remove pc_compat_2_9[] array
hw/core/machine: Remove hw_compat_2_9[] array hw/net/virtio-net: Remove VirtIONet::mtu_bypass_backend field hw/pci-bridge/gen_pcie_rp: Remove GenPCIERootPort::migrate_msix field hw/i386/x86-iommu: Remove X86IOMMUState::pt_supported field

Thomas Huth (1):
tests/qtest/test-x86-cpuid-compat: Remove the test with the i440fx-2.9
machine

 include/hw/core/boards.h            |  6 -----
 include/hw/i386/pc.h                |  6 -----
 include/hw/i386/x86-iommu.h         |  1 -
 include/hw/pci/pci.h                |  2 --
 include/hw/virtio/virtio-net.h      |  1 -
 include/hw/virtio/virtio-pci.h      | 12 ----------
 hw/block/pflash_cfi01.c             | 14 +++---------
 hw/core/machine.c                   | 22 ------------------
 hw/i386/intel_iommu.c               | 13 ++---------
 hw/i386/kvm/clock.c                 | 18 ---------------
 hw/i386/pc.c                        | 14 ------------
 hw/i386/pc_piix.c                   | 18 ---------------
 hw/i386/pc_q35.c                    | 18 ---------------
 hw/i386/x86-iommu.c                 |  1 -
 hw/net/virtio-net.c                 |  8 ++-----
 hw/pci-bridge/gen_pcie_root_port.c  | 16 ++-----------
 hw/pci/pci.c                        |  2 --
 hw/pci/pcie.c                       |  6 ++---
 hw/virtio/virtio-pci.c              | 35 ++++++++---------------------
 tests/qtest/test-x86-cpuid-compat.c | 11 ---------
 20 files changed, 20 insertions(+), 204 deletions(-)
Signature · 1 line
2.53.0