migration: Route more error paths
commit2f168d0708581c33baf6c78d75a89e8cd705f9f6
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 25 Sep 2017 11:29:17 +0000 (25 12:29 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 27 Sep 2017 10:44:18 +0000 (27 11:44 +0100)
treefd78df5cfa57d44091879e6906fd4d5736e35747
parent687433f61173a9ed80609f16f8bc4b9255bd815c
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
hw/display/virtio-gpu.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h
migration/vmstate-types.c
tests/test-vmstate.c