summaryrefslogtreecommitdiffstats
path: root/hw/pci-hotplug.c
diff options
context:
space:
mode:
authorLuiz Capitulino2009-08-28 20:27:13 +0200
committerAnthony Liguori2009-09-04 16:37:31 +0200
commitd54908a55b9123b11c6d525f022f92bb016a6468 (patch)
treec6305d08a2f82fe375e4d01eaa35d9b03c0b2a80 /hw/pci-hotplug.c
parentmonitor: Port handler_0 to use QDict (diff)
downloadqemu-d54908a55b9123b11c6d525f022f92bb016a6468.tar.gz
qemu-d54908a55b9123b11c6d525f022f92bb016a6468.tar.xz
qemu-d54908a55b9123b11c6d525f022f92bb016a6468.zip
monitor: Port handler_1 to use QDict
This commit ports command handlers that receive one argument to use the new monitor's dictionary. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci-hotplug.c')
-rw-r--r--hw/pci-hotplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index 5d44209046..bf9a3c4415 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -203,9 +203,9 @@ void pci_device_hot_remove(Monitor *mon, const char *pci_addr)
qemu_system_device_hot_add(bus, slot, 0);
}
-void do_pci_device_hot_remove(Monitor *mon, const char *pci_addr)
+void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict)
{
- pci_device_hot_remove(mon, pci_addr);
+ pci_device_hot_remove(mon, qdict_get_str(qdict, "pci_addr"));
}
static int pci_match_fn(void *dev_private, void *arg)