Fix hot remove assigned device
commit6e0c1ccc8bc52cbcdc413f131c9d3d02e0ded620
authorWeidong Han <weidong.han@intel.com>
Wed, 18 Feb 2009 06:33:41 +0000 (18 14:33 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Feb 2009 10:08:08 +0000 (24 12:08 +0200)
treefd1fa86ff563ed4db16a8108d58f6ec4a7a2ce0b
parentd7f6c3c1faec65510a85e32923cae2661f1042b8
Fix hot remove assigned device

When hot remove assigned device, should deassign it
from guest and free it from qemu.

assign_dev_update_irqs may not be invoked when hot add a
device, so need to assign irq after device assignment in
init_assigned_device.

Acked-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/device-assignment.c
hw/device-assignment.h
hw/pci-hotplug.c