virtio-9p: add savem handlers
commit4652f1640e029e1f2433fa77ba6af285c7cd923a
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Thu, 22 Oct 2015 17:38:42 +0000 (22 19:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Nov 2015 14:40:14 +0000 (12 16:40 +0200)
treefd320cd9ffea42b59149b8cd54585e5c025dd20f
parent1811e64c35fe1d9bce77952937a16c001dc08465
virtio-9p: add savem handlers

We don't support migration of mounted 9p shares. This is handled by a
migration blocker.

One would expect, however, to be able to migrate if the share is unmounted.
Unfortunately virtio-9p-device does not register savevm handlers at all !
Migration succeeds and leaves the guest with a dangling device...

This patch simply registers migration handlers for virtio-9p-device. Whether
migration is possible or not still depends on the migration blocker.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/9pfs/virtio-9p-device.c