qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user


From: Felipe Franciosi
Subject: Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user
Date: Tue, 18 Oct 2016 14:13:01 +0000

> On 18 Oct 2016, at 10:24, Marc-André Lureau <address@hidden> 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 <address@hidden>
> [Felipe: set used_idx copy on SET_VRING_ADDR and update shadow avail idx
> on SET_VRING_BASE]
> Signed-off-by: Felipe Franciosi <address@hidden>
> ---
> 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

[Prev in Thread] Current Thread [Next in Thread]