mbox

[RFC,v2,0/2] vhost: Support external backend only vhost-user requests

Message ID 20190228153134.31865-1-maxime.coquelin@redhat.com (mailing list archive)
Headers

Message

Maxime Coquelin Feb. 28, 2019, 3:31 p.m. UTC
The goals of this series is to provide more flexibility to external
backends to implement their specific vhost-user request handling
without having to patch vhost-user library.

First patch implements a new API for external backend to advertize
its specific protocol features to vhost-user master.

Second patch ensures a request not handled by the vhost-user library
but by the external backend only will not be treated as an error or
make the vhost lib to crash.

Changes in RFC v2:
==================
 - Fix build & git message
 - Add new enum for not handled messages & remove skip_master (Ilya)

Maxime Coquelin (2):
  vhost: add API to set protocol features flags
  vhost: support requests only handled by external backend

 lib/librte_vhost/rte_vhost.h           | 30 +++++++++--
 lib/librte_vhost/rte_vhost_version.map |  1 +
 lib/librte_vhost/socket.c              | 14 +++++
 lib/librte_vhost/vhost_user.c          | 75 +++++++++++++++++---------
 4 files changed, 89 insertions(+), 31 deletions(-)