Fix hot assign device
commit4f9778c68887ea224d6239a90f46828d547cb692
authorWeidong Han <weidong.han@intel.com>
Wed, 18 Feb 2009 06:02:35 +0000 (18 14:02 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Feb 2009 10:08:07 +0000 (24 12:08 +0200)
tree49fe6019e31147c589c89d9b05d0ee89c6663b2a
parent6dce7ab47232afdf628e4f18305a80b7679c681c
Fix hot assign device

Last qemu merge broke device assignment hotplug. Call
qemu_pci_hot_assign_device in pci_device_hot_add for
hot assign device, and add the command for it.
for example hot assign 01:00.0, can use following command:
  pci_add pci_addr=auto host host=01:00.0

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/device-hotplug.c
hw/pci-hotplug.c
monitor.c