Remove unnecessary minimum_version_id_old fields
commit17e313406126125036191f11e9c70298be34c987
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Jan 2022 10:44:34 +0000 (18 10:44 +0000)
committerJuan Quintela <quintela@redhat.com>
Fri, 28 Jan 2022 14:38:23 +0000 (28 15:38 +0100)
treee5c5dc0a481934f6b9e7c27153fb61dc1abf8c14
parent8c0ec0b2b0622563a8620d0bf2bb60e90e18df18
Remove unnecessary minimum_version_id_old fields

The migration code will not look at a VMStateDescription's
minimum_version_id_old field unless that VMSD has set the
load_state_old field to something non-NULL.  (The purpose of
minimum_version_id_old is to specify what migration version is needed
for the code in the function pointed to by load_state_old to be able
to handle it on incoming migration.)

We have exactly one VMSD which still has a load_state_old,
in the PPC CPU; every other VMSD which sets minimum_version_id_old
is doing so unnecessarily. Delete all the unnecessary ones.

Commit created with:
  sed -i '/\.minimum_version_id_old/d' $(git grep -l '\.minimum_version_id_old')
with the one legitimate use then hand-edited back in.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---

It missed vmstate_ppc_cpu.
26 files changed:
hw/acpi/cpu.c
hw/acpi/ich9.c
hw/acpi/memory_hotplug.c
hw/acpi/piix4.c
hw/acpi/tco.c
hw/audio/pcspk.c
hw/display/macfb.c
hw/dma/xlnx-zdma.c
hw/dma/xlnx_csu_dma.c
hw/gpio/imx_gpio.c
hw/misc/bcm2835_mbox.c
hw/net/can/can_kvaser_pci.c
hw/net/can/can_mioe3680_pci.c
hw/net/can/can_pcm3680_pci.c
hw/net/can/can_sja1000.c
hw/net/can/ctucan_core.c
hw/net/can/ctucan_pci.c
hw/ppc/ppc.c
hw/scsi/megasas.c
hw/scsi/mptsas.c
hw/virtio/virtio-mmio.c
hw/virtio/virtio-pci.c
hw/virtio/virtio.c
target/openrisc/machine.c
target/ppc/machine.c
target/sparc/machine.c