mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
monitor: add poll-* properties into query-iothreads result
IOthreads were recently extended by new properties that can enable/disable and configure aio polling. This will also allow other tools that uses QEMU to probe for existence of those new properties via query-qmp-schema. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Message-Id: <3163c16d6ab4257f7be9ad44fe9cc0ce8c359e5a.1486718555.git.phrdina@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
3f35c3b166
commit
5fc00480ab
3 changed files with 24 additions and 3 deletions
9
hmp.c
9
hmp.c
|
|
@ -2149,10 +2149,15 @@ void hmp_info_iothreads(Monitor *mon, const QDict *qdict)
|
|||
{
|
||||
IOThreadInfoList *info_list = qmp_query_iothreads(NULL);
|
||||
IOThreadInfoList *info;
|
||||
IOThreadInfo *value;
|
||||
|
||||
for (info = info_list; info; info = info->next) {
|
||||
monitor_printf(mon, "%s: thread_id=%" PRId64 "\n",
|
||||
info->value->id, info->value->thread_id);
|
||||
value = info->value;
|
||||
monitor_printf(mon, "%s:\n", value->id);
|
||||
monitor_printf(mon, " thread_id=%" PRId64 "\n", value->thread_id);
|
||||
monitor_printf(mon, " poll-max-ns=%" PRId64 "\n", value->poll_max_ns);
|
||||
monitor_printf(mon, " poll-grow=%" PRId64 "\n", value->poll_grow);
|
||||
monitor_printf(mon, " poll-shrink=%" PRId64 "\n", value->poll_shrink);
|
||||
}
|
||||
|
||||
qapi_free_IOThreadInfoList(info_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue