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>
Showing
- docs/devel/migration.txt 1 addition, 1 deletiondocs/devel/migration.txt
- hw/arm/pxa2xx.c 3 additions, 1 deletionhw/arm/pxa2xx.c
- hw/arm/strongarm.c 3 additions, 1 deletionhw/arm/strongarm.c
- hw/audio/wm8750.c 3 additions, 1 deletionhw/audio/wm8750.c
- hw/block/fdc.c 3 additions, 1 deletionhw/block/fdc.c
- hw/block/m25p80.c 3 additions, 1 deletionhw/block/m25p80.c
- hw/block/nand.c 3 additions, 1 deletionhw/block/nand.c
- hw/block/onenand.c 3 additions, 1 deletionhw/block/onenand.c
- hw/char/serial.c 3 additions, 1 deletionhw/char/serial.c
- hw/display/qxl.c 3 additions, 1 deletionhw/display/qxl.c
- hw/i2c/core.c 3 additions, 1 deletionhw/i2c/core.c
- hw/i386/kvm/clock.c 3 additions, 1 deletionhw/i386/kvm/clock.c
- hw/ide/core.c 3 additions, 1 deletionhw/ide/core.c
- hw/ide/pci.c 3 additions, 1 deletionhw/ide/pci.c
- hw/input/ps2.c 6 additions, 2 deletionshw/input/ps2.c
- hw/input/tsc210x.c 3 additions, 1 deletionhw/input/tsc210x.c
- hw/intc/apic_common.c 3 additions, 1 deletionhw/intc/apic_common.c
- hw/intc/arm_gic_common.c 3 additions, 1 deletionhw/intc/arm_gic_common.c
- hw/intc/arm_gicv3_common.c 3 additions, 1 deletionhw/intc/arm_gicv3_common.c
- hw/intc/arm_gicv3_its_common.c 3 additions, 1 deletionhw/intc/arm_gicv3_its_common.c
Loading
Please register or sign in to comment