virtio-balloon: Unregister savevm section on device unplug
commitac720400e1730ff910d42442e4393044e7c132e0
authorAmit Shah <amit.shah@redhat.com>
Thu, 28 Jul 2011 06:06:26 +0000 (28 11:36 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 21:43:10 +0000 (4 16:43 -0500)
tree5553bd6ca7c63fb1686a3517044e7ba01341637a
parent855d7e259fe2a804f08698ca5c97d6b07fa79da1
virtio-balloon: Unregister savevm section on device unplug

Migrating after unplugging a virtio-balloon device resulted in an error
message on the destination:

Unknown savevm section or instance '0000:00:04.0/virtio-balloon' 0
load of migration failed

Fix this by unregistering the section on device unplug.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-balloon.c