[PATCH v4 0/5] vhost: FD manager improvements
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Jun 11 15:39:52 CEST 2024
This series aims at improving the Vhost FD manager.
The fdset internals is hidden from its callers, the
notification/synchronization is made systematic for
every FD add/del operations and finally the code is
reworked to make use of epoll insteal of poll which
reduces the complexity (less locks involved,
synchrnoization no more necessary).
The series has been tested with both Vhost-user/Virtio-user
and with VDUSE.
Changes in v4:
==============
- Remove useless parameter check (Stephen)
- Error handling in dset_add (Chenbo)
- Destroy support fixup in even dispatcher (Chenbo)
- Refactor fdentry insertion/removal
- Rebased on top of next-virtio/staging
David Marchand (1):
vhost: manage FD with epoll
Maxime Coquelin (4):
vhost: rename polling mutex
vhost: make use of FD manager init function
vhost: hide synchronization within FD manager
vhost: improve fdset initialization
lib/vhost/fd_man.c | 456 ++++++++++++++++++++++-----------------------
lib/vhost/fd_man.h | 48 +----
lib/vhost/socket.c | 38 +---
lib/vhost/vduse.c | 52 ++----
4 files changed, 252 insertions(+), 342 deletions(-)
--
2.45.1
More information about the dev
mailing list