diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-25 21:42:41 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:48 -0500 |
commit | 3418bd25e1763ecb29c912775e2639f30a4f9016 (patch) | |
tree | 57c819fc4f7664d6d7082c2508e4334647acfcf1 /qemu-monitor.hx | |
parent | a861c453e7b02646ba66eba3a21c4f7a080cbc0d (diff) | |
download | qemu-3418bd25e1763ecb29c912775e2639f30a4f9016.tar.gz qemu-3418bd25e1763ecb29c912775e2639f30a4f9016.tar.bz2 qemu-3418bd25e1763ecb29c912775e2639f30a4f9016.zip |
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>
Diffstat (limited to 'qemu-monitor.hx')
-rw-r--r-- | qemu-monitor.hx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 6aa99cef42..784d30e9c9 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -369,8 +369,24 @@ hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor command @code{info usb} to see the devices you can remove. ETEXI - { "cpu", "index:i", do_cpu_set, - "index", "set the default CPU" }, + { "device_add", "config:s", do_device_add, + "device", "add device, like -device on the command line" }, +STEXI +@item device_add @var{config} + +Add device. +ETEXI + + { "device_del", "id:s", do_device_del, + "device", "remove device" }, +STEXI +@item device_del @var{id} + +Remove device @var{id}. +ETEXI + + { "cpu", "index:i", do_cpu_set, "index", "set the default CPU" }, + STEXI Set the default CPU. ETEXI |