qdev hotplug: infrastructure and monitor commands.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 25 Sep 2009 19:42:41 +0000 (21:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:48 +0000 (09:32 -0500)
commit43780b59176a21b1d21f637757f55a961b375420
tree57c819fc4f7664d6d7082c2508e4334647acfcf1
parent6be92f7b7fe65c952a802b8eefab30c33f613c9a
qdev hotplug: infrastructure and monitor commands.

Adds device_add and device_del commands.  device_add accepts accepts
the same syntax like the -device command line switch.  device_del
expects a device id.  So you should tag your devices with ids if you
want to remove them later on, like this:

  device_add pci-ohci,id=ohci
  device_del ohci

Unplugging via pci_del or usb_del works too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c
hw/qdev.h
qemu-monitor.hx
vl.c