> On 18 Oct 2016, at 10:24, Marc-André Lureau <marcandre.lur...@redhat.com> 
> wrote:
> 
> Add a library to help implementing vhost-user backend (or slave).
> 
> Dealing with vhost-user as an application developper isn't so easy: you

s/developper/developer/

Felipe

> have all the trouble with any protocol: validation, unix ancillary data,
> shared memory, eventfd, logging, and on top of that you need to deal
> with virtio queues, if possible efficiently.
> 
> qemu test has a nice vhost-user testing application vhost-user-bridge,
> which implements most of vhost-user, and virtio.c which implements
> virtqueues manipulation. Based on these two, I tried to make a simple
> library, reusable for tests or development of new vhost-user scenarios.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
> [Felipe: set used_idx copy on SET_VRING_ADDR and update shadow avail idx
> on SET_VRING_BASE]
> Signed-off-by: Felipe Franciosi <fel...@nutanix.com>
> ---
> contrib/libvhost-user/libvhost-user.c | 1499 +++++++++++++++++++++++++++++++++
> Makefile                              |    1 +
> Makefile.objs                         |    2 +-
> contrib/libvhost-user/Makefile.objs   |    1 +
> contrib/libvhost-user/libvhost-user.h |  435 ++++++++++
> 5 files changed, 1937 insertions(+), 1 deletion(-)
> create mode 100644 contrib/libvhost-user/libvhost-user.c
> create mode 100644 contrib/libvhost-user/Makefile.objs
> create mode 100644 contrib/libvhost-user/libvhost-user.h
> 
> diff --git a/contrib/libvhost-user/libvhost-user.c 
> b/contrib/libvhost-user/libvhost-user.c
> new file mode 100644
> index 0000000..af4faad
<...>

Reply via email to