]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
virtio: introduce device specific migration calls
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Tue, 24 Jun 2014 17:15:31 +0000 (19:15 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Jun 2014 16:39:41 +0000 (19:39 +0300)
commit1b5fc0dea469976fcbf6dc2e8f2637a2154af2fb
tree481aa37972c3f7a3da16166688c5cb9d457e6478
parente38e943a1fa20d04deb1899be19b12aadec7a585
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>
hw/block/virtio-blk.c
hw/char/virtio-serial-bus.c
hw/net/virtio-net.c
hw/scsi/virtio-scsi.c
hw/virtio/virtio-balloon.c
hw/virtio/virtio-rng.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h