mbox series

[v2,0/3] provide thread unsafe async registration functions

Message ID 1625656687-40604-1-git-send-email-jiayu.hu@intel.com (mailing list archive)
Series provide thread unsafe async registration functions |


Hu, Jiayu July 7, 2021, 11:18 a.m. UTC
  Lock protection is needed during the vhost notifies the application of
device readiness, so the first patch adds lock protection. In addition,
the second patch reworks async feature structure to improve readability.
After performing locking, existed async vhost registration functions will
cause deadlock, as they acquire lock too. The last patch provides thread
unsafe registration functions to support calling within vhost callback

* rework async feature structure
* fix typo in commit log

Jiayu Hu (3):
  vhost: fix lock on device readiness notification
  vhost: rework async feature struct
  vhost: add thread unsafe async registeration functions

 doc/guides/prog_guide/vhost_lib.rst |  12 +++
 examples/vhost/main.c               |   4 +-
 lib/vhost/rte_vhost_async.h         |  63 +++++++++++----
 lib/vhost/version.map               |   4 +
 lib/vhost/vhost.c                   | 157 ++++++++++++++++++++++++++----------
 lib/vhost/vhost_user.c              |   5 +-
 6 files changed, 183 insertions(+), 62 deletions(-)