[v3,0/5] vhost: FD manager improvements

Message ID 20240409114845.1336403-1-maxime.coquelin@redhat.com (mailing list archive)
Headers
Series vhost: FD manager improvements |

Message

Maxime Coquelin April 9, 2024, 11:48 a.m. UTC
  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.

Only change in this revision is removing mistakenly
added temporary file in patch 3.

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 | 431 +++++++++++++++++++++------------------------
 lib/vhost/fd_man.h |  48 +----
 lib/vhost/socket.c |  38 +---
 lib/vhost/vduse.c  |  52 ++----
 4 files changed, 224 insertions(+), 345 deletions(-)