summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-25 21:42:41 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:48 -0500
commit3418bd25e1763ecb29c912775e2639f30a4f9016 (patch)
tree57c819fc4f7664d6d7082c2508e4334647acfcf1 /vl.c
parenta861c453e7b02646ba66eba3a21c4f7a080cbc0d (diff)
downloadqemu-3418bd25e1763ecb29c912775e2639f30a4f9016.tar.gz
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 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index dd2de980e8..fd1cc0170e 100644
--- a/vl.c
+++ b/vl.c
@@ -5959,6 +5959,8 @@ int main(int argc, char **argv, char **envp)
exit(1);
}
+ qdev_machine_creation_done();
+
if (loadvm) {
if (load_vmstate(cur_mon, loadvm) < 0) {
autostart = 0;