diff options
| author | Stefan Hajnoczi | 2020-03-05 18:08:05 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2020-03-09 17:41:31 +0100 |
| commit | aa38e19f05c3a5ae64dff84f44e1aa31281a5b14 (patch) | |
| tree | 511a1cbddc11aee4e8b4ff22469189136cc125d9 /scripts | |
| parent | aio-posix: add io_uring fd monitoring implementation (diff) | |
| download | qemu-aa38e19f05c3a5ae64dff84f44e1aa31281a5b14.tar.gz qemu-aa38e19f05c3a5ae64dff84f44e1aa31281a5b14.tar.xz qemu-aa38e19f05c3a5ae64dff84f44e1aa31281a5b14.zip | |
aio-posix: support userspace polling of fd monitoring
Unlike ppoll(2) and epoll(7), Linux io_uring completions can be polled
from userspace. Previously userspace polling was only allowed when all
AioHandler's had an ->io_poll() callback. This prevented starvation of
fds by userspace pollable handlers.
Add the FDMonOps->need_wait() callback that enables userspace polling
even when some AioHandlers lack ->io_poll().
For example, it's now possible to do userspace polling when a TCP/IP
socket is monitored thanks to Linux io_uring.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Link: https://lore.kernel.org/r/20200305170806.1313245-7-stefanha@redhat.com
Message-Id: <20200305170806.1313245-7-stefanha@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
