summaryrefslogtreecommitdiffstats
path: root/include/sysemu/iothread.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2016-12-01 20:26:52 +0100
committerStefan Hajnoczi2017-01-03 17:38:50 +0100
commit5e5db49953e31689c1c70060870f0a7a6de26fcb (patch)
treee1692543039d6f2874fcd6b1b81feee25f2b6cb4 /include/sysemu/iothread.h
parentaio: self-tune polling time (diff)
downloadqemu-5e5db49953e31689c1c70060870f0a7a6de26fcb.tar.gz
qemu-5e5db49953e31689c1c70060870f0a7a6de26fcb.tar.xz
qemu-5e5db49953e31689c1c70060870f0a7a6de26fcb.zip
iothread: add poll-grow and poll-shrink parameters
These parameters control the poll time self-tuning algorithm. They are optional and will default to sane values if omitted. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20161201192652.9509-14-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/sysemu/iothread.h')
-rw-r--r--include/sysemu/iothread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/iothread.h b/include/sysemu/iothread.h
index 314e163377..e6da1a4087 100644
--- a/include/sysemu/iothread.h
+++ b/include/sysemu/iothread.h
@@ -31,6 +31,8 @@ typedef struct {
/* AioContext poll parameters */
int64_t poll_max_ns;
+ int64_t poll_grow;
+ int64_t poll_shrink;
} IOThread;
#define IOTHREAD(obj) \