aboutsummaryrefslogtreecommitdiff
path: root/iothread.c
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2017-02-10 10:41:17 +0100
committerDr. David Alan Gilbert <dgilbert@redhat.com>2017-02-21 18:29:01 +0000
commit5fc00480ab1ce767f1c6c63ae644e960295fed2c (patch)
tree35901d6220ca530be5a5cb96cf05a286369be202 /iothread.c
parent3f35c3b166c18043596768448e5d91b5d52f8353 (diff)
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>
Diffstat (limited to 'iothread.c')
-rw-r--r--iothread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iothread.c b/iothread.c
index 257b01d5f1..beeb870534 100644
--- a/iothread.c
+++ b/iothread.c
@@ -268,6 +268,9 @@ static int query_one_iothread(Object *object, void *opaque)
info = g_new0(IOThreadInfo, 1);
info->id = iothread_get_id(iothread);
info->thread_id = iothread->thread_id;
+ info->poll_max_ns = iothread->poll_max_ns;
+ info->poll_grow = iothread->poll_grow;
+ info->poll_shrink = iothread->poll_shrink;
elem = g_new0(IOThreadInfoList, 1);
elem->value = info;