[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
<...>
- [Qemu-devel] [PATCH v2 0/6] Start a contrib/libvhost-user, Marc-André Lureau, 2016/10/18
- [Qemu-devel] [PATCH v2 0/6] Start a contrib/libvhost-user, Marc-André Lureau, 2016/10/18
- [Qemu-devel] [PATCH v2 1/6] tests/vhost-user-bridge: remove false comment, Marc-André Lureau, 2016/10/18
- [Qemu-devel] [PATCH v2 2/6] tests/vhost-user-bridge: remove unnecessary dispatcher_remove, Marc-André Lureau, 2016/10/18
- [Qemu-devel] [PATCH v2 3/6] tests/vhost-user-bridge: indicate peer disconnected, Marc-André Lureau, 2016/10/18
- [Qemu-devel] [PATCH v2 4/6] tests/vhost-user-bridge: do not accept more than one connection, Marc-André Lureau, 2016/10/18
- [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user, Marc-André Lureau, 2016/10/18
- Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user,
Felipe Franciosi <=
- Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user, Felipe Franciosi, 2016/10/18
- Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user, Marc-André Lureau, 2016/10/18
- Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user, Felipe Franciosi, 2016/10/18
- Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user, Michael S. Tsirkin, 2016/10/27
- Re: [Qemu-devel] [PATCH v2 5/6] contrib: add libvhost-user, Felipe Franciosi, 2016/10/27
[Qemu-devel] [PATCH v2 6/6] tests/vhost-user-bridge: use contrib/libvhost-user, Marc-André Lureau, 2016/10/18