diff options
author | Greg Kurz | 2014-06-24 19:15:31 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2014-06-29 18:39:41 +0200 |
commit | 1b5fc0dea469976fcbf6dc2e8f2637a2154af2fb (patch) | |
tree | 481aa37972c3f7a3da16166688c5cb9d457e6478 /hw/char | |
parent | virtio-serial: don't migrate the config space (diff) | |
download | qemu-1b5fc0dea469976fcbf6dc2e8f2637a2154af2fb.tar.gz qemu-1b5fc0dea469976fcbf6dc2e8f2637a2154af2fb.tar.xz qemu-1b5fc0dea469976fcbf6dc2e8f2637a2154af2fb.zip |
virtio: introduce device specific migration calls
In order to migrate virtio subsections, they should be streamed after
the device itself. We need the device specific code to be called from
the common migration code to achieve this. This patch introduces load
and save methods for this purpose.
Suggested-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/char')
-rw-r--r-- | hw/char/virtio-serial-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index e2174b10bb..f919ec2440 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-serial-bus.c @@ -670,7 +670,7 @@ static int virtio_serial_load(QEMUFile *f, void *opaque, int version_id) } /* The virtio device */ - ret = virtio_load(VIRTIO_DEVICE(s), f); + ret = virtio_load(VIRTIO_DEVICE(s), f, version_id); if (ret) { return ret; } |