diff options
| author | Dr. David Alan Gilbert | 2017-09-25 13:29:17 +0200 |
|---|---|---|
| committer | Dr. David Alan Gilbert | 2017-09-27 12:44:18 +0200 |
| commit | 2f168d0708581c33baf6c78d75a89e8cd705f9f6 (patch) | |
| tree | fd78df5cfa57d44091879e6906fd4d5736e35747 /include | |
| parent | migration: Route errors up through vmstate_save (diff) | |
| download | qemu-2f168d0708581c33baf6c78d75a89e8cd705f9f6.tar.gz qemu-2f168d0708581c33baf6c78d75a89e8cd705f9f6.tar.xz qemu-2f168d0708581c33baf6c78d75a89e8cd705f9f6.zip | |
migration: Route more error paths
vmstate_save_state is called in lots of places.
Route error returns from the easier cases back up; there are lots
of more complex cases where their own error paths need fixing.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20170925112917.21340-7-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>
Commit message fix up as Peter's review
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/virtio/virtio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 80c45c321e..5abada6966 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -188,7 +188,7 @@ void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes, void virtio_notify_irqfd(VirtIODevice *vdev, VirtQueue *vq); void virtio_notify(VirtIODevice *vdev, VirtQueue *vq); -void virtio_save(VirtIODevice *vdev, QEMUFile *f); +int virtio_save(VirtIODevice *vdev, QEMUFile *f); extern const VMStateInfo virtio_vmstate_info; |
