virtio-serial: Cleanup on device hot-unplug
commit8b53a865772789a3402a44aa80169f8dd728eba2
authorAmit Shah <amit.shah@redhat.com>
Thu, 19 Aug 2010 01:21:04 +0000 (19 06:51 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Sun, 22 Aug 2010 21:19:00 +0000 (22 16:19 -0500)
tree8b631a97e84bff356a61a2664faff2f92501b577
parent583cd3cb93649ef223e36bf33197de65c3d9767b
virtio-serial: Cleanup on device hot-unplug

Free malloc'ed memory, unregister from savevm and clean up virtio-common
bits on device hot-unplug.

This was found performing a migration after device hot-unplug.

Reported-by: <lihuang@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-pci.c
hw/virtio-serial-bus.c
hw/virtio.h