]> git.proxmox.com Git - mirror_qemu.git/commit - hw/net/e1000.c
migration: pre_save return int
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 25 Sep 2017 11:29:12 +0000 (12:29 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 27 Sep 2017 10:35:59 +0000 (11:35 +0100)
commit44b1ff319c4781c7ab13f7e119b3114a1e6a52e2
treeb8e8aa9c74c890808876e7a5969b69ac25c1930a
parent9ac78b6171bec47083a9b6ce88dc1f114caea2f9
migration: pre_save return int

Modify the pre_save method on VMStateDescription to return an int
rather than void so that it potentially can fail.

Changed zillions of devices to make them return 0; the only
case I've made it return non-0 is hw/intc/s390_flic_kvm.c that already
had an error_report/return case.

Note: If you add an error exit in your pre_save you must emit
an error_report to say why.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20170925112917.21340-2-dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
59 files changed:
docs/devel/migration.txt
hw/arm/pxa2xx.c
hw/arm/strongarm.c
hw/audio/wm8750.c
hw/block/fdc.c
hw/block/m25p80.c
hw/block/nand.c
hw/block/onenand.c
hw/char/serial.c
hw/display/qxl.c
hw/i2c/core.c
hw/i386/kvm/clock.c
hw/ide/core.c
hw/ide/pci.c
hw/input/ps2.c
hw/input/tsc210x.c
hw/intc/apic_common.c
hw/intc/arm_gic_common.c
hw/intc/arm_gicv3_common.c
hw/intc/arm_gicv3_its_common.c
hw/intc/i8259_common.c
hw/intc/ioapic_common.c
hw/intc/s390_flic_kvm.c
hw/intc/xics.c
hw/net/e1000.c
hw/net/e1000e.c
hw/net/rtl8139.c
hw/net/virtio-net.c
hw/net/vmxnet3.c
hw/pci-host/piix.c
hw/ppc/ppc.c
hw/ppc/spapr_iommu.c
hw/ppc/spapr_pci.c
hw/s390x/css.c
hw/s390x/virtio-ccw.c
hw/scsi/lsi53c895a.c
hw/scsi/vmw_pvscsi.c
hw/timer/cadence_ttc.c
hw/timer/hpet.c
hw/timer/i8254_common.c
hw/timer/mc146818rtc.c
hw/timer/pl031.c
hw/timer/twl92230.c
hw/usb/dev-smartcard-reader.c
hw/usb/hcd-ehci.c
hw/usb/redirect.c
hw/virtio/vhost-vsock.c
include/migration/vmstate.h
migration/colo-comm.c
migration/global_state.c
migration/savevm.c
replay/replay-snapshot.c
slirp/slirp.c
target/arm/machine.c
target/i386/machine.c
target/ppc/machine.c
target/s390x/machine.c
target/sparc/machine.c
tests/test-vmstate.c