diff options
author | Stefan Hajnoczi | 2016-12-01 20:26:45 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2017-01-03 17:38:49 +0100 |
commit | 0d9d86fb4df4882ba4ad9968efe81eca1c7b7c90 (patch) | |
tree | acb9d4f308182b42032f2e604f4c05aa4593d0b4 /include/sysemu/iothread.h | |
parent | linux-aio: poll ring for completions (diff) | |
download | qemu-0d9d86fb4df4882ba4ad9968efe81eca1c7b7c90.tar.gz qemu-0d9d86fb4df4882ba4ad9968efe81eca1c7b7c90.tar.xz qemu-0d9d86fb4df4882ba4ad9968efe81eca1c7b7c90.zip |
iothread: add polling parameters
Poll mode can be configured with -object iothread,poll-max-ns=NUM.
Polling is disabled with a value of 0 nanoseconds.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20161201192652.9509-7-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/sysemu/iothread.h')
-rw-r--r-- | include/sysemu/iothread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/iothread.h b/include/sysemu/iothread.h index 68ac2de83a..314e163377 100644 --- a/include/sysemu/iothread.h +++ b/include/sysemu/iothread.h @@ -28,6 +28,9 @@ typedef struct { QemuCond init_done_cond; /* is thread initialization done? */ bool stopping; int thread_id; + + /* AioContext poll parameters */ + int64_t poll_max_ns; } IOThread; #define IOTHREAD(obj) \ |