From 62313160cb5b6bdfbd77a063e94a5a7d25e59f2b Mon Sep 17 00:00:00 2001 From: Ting Wang Date: Fri, 26 Jun 2015 16:07:13 +0800 Subject: hmp: add info iothreads command Make "info iothreads" available on the HMP monitor. For example, the results are as follows when executing qemu command with "-object iothread,id=iothread-1 -object iothread,id=iothread-2". (qemu) info iothreads iothread-1: thread_id=123 iothread-2: thread_id=456 Signed-off-by: Ting Wang Message-Id: <1435306033-58372-1-git-send-email-kathy.wangting@huawei.com> Reviewed-by: Luiz Capitulino Reviewed-by: Amos Jianjun Kong Signed-off-by: Markus Armbruster --- monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index b1f2a29793..5455ab9de0 100644 --- a/monitor.c +++ b/monitor.c @@ -2853,6 +2853,13 @@ static mon_cmd_t info_cmds[] = { .help = "show memory devices", .mhandler.cmd = hmp_info_memory_devices, }, + { + .name = "iothreads", + .args_type = "", + .params = "", + .help = "show iothreads", + .mhandler.cmd = hmp_info_iothreads, + }, { .name = "rocker", .args_type = "name:s", -- cgit v1.2.3