aboutsummaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorHani Benhabiles <kroosec@gmail.com>2014-04-13 16:25:07 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2014-04-25 09:37:12 -0400
commit2da1b3abbccd267f09ebda7ba604fbbb0220f406 (patch)
tree273d5c1ca0836ad9907d2ceb539da3258dcae306 /hmp-commands.hx
parentbfa40f77af05731e2e976c5aa8c4edc86a87acd3 (diff)
downloadqemu-arm-2da1b3abbccd267f09ebda7ba604fbbb0220f406.tar.gz
monitor: Add device_add and device_del completion.
Also fix device_add completion including non-hotpluggable devices. Signed-off-by: Hani Benhabiles <hani@linux.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index 1b382b6bf2..4c4d2619c6 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -658,6 +658,7 @@ ETEXI
.help = "add device, like -device on the command line",
.user_print = monitor_user_noop,
.mhandler.cmd_new = do_device_add,
+ .command_completion = device_add_completion,
},
STEXI
@@ -673,6 +674,7 @@ ETEXI
.params = "device",
.help = "remove device",
.mhandler.cmd = hmp_device_del,
+ .command_completion = device_del_completion,
},
STEXI