From 1c1d7bda2cd507aec72057a1c16094541add9dd6 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Thu, 10 Dec 2009 17:16:09 -0200 Subject: PCI: Convert pci_device_hot_add() to QObject Return a QDict with information about the just added device. This commit should not change user output. Please, note that this patch does not do error handling conversion. In error conditions the handler still calls monitor_printf(). Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori (cherry picked from commit 7a344f7ac7bb651d0556a933ed8060d3a9e5d949) --- qemu-monitor.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qemu-monitor.hx') diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 0657b2d16..c788c7378 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -810,7 +810,8 @@ ETEXI .args_type = "pci_addr:s,type:s,opts:s?", .params = "auto|[[:]:] nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", .help = "hot-add PCI device", - .mhandler.cmd = pci_device_hot_add, + .user_print = pci_device_hot_add_print, + .mhandler.cmd_new = pci_device_hot_add, }, #endif -- cgit v1.2.3-65-gdbad