iothread: add polling parameters
commit0d9d86fb4df4882ba4ad9968efe81eca1c7b7c90
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Dec 2016 19:26:45 +0000 (1 19:26 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Jan 2017 16:38:49 +0000 (3 16:38 +0000)
treeacb9d4f308182b42032f2e604f4c05aa4593d0b4
parentee68697551cd81186c5b12eba10c158350cf1165
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>
include/sysemu/iothread.h
iothread.c