mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
ee68697551
commit
0d9d86fb4d
2 changed files with 53 additions and 0 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue