]> git.proxmox.com Git - mirror_qemu.git/commit - Makefile
contrib: add libvhost-user
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 18 Oct 2016 09:24:04 +0000 (12:24 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 23:14:38 +0000 (01:14 +0200)
commit7b2e5c65f42fff7a418e2b8216e92f5e0a0c3e7e
treee2346f2a340d3023d2ef6e64326a4c17c74b43e8
parent98206d4e6b719f650b0f2d23bcd4bab83c624341
contrib: add libvhost-user

Add a library to help implementing vhost-user backend (or slave).

Dealing with vhost-user as an application developer isn't so easy: you
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.lureau@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 <felipe@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Makefile
Makefile.objs
contrib/libvhost-user/Makefile.objs [new file with mode: 0644]
contrib/libvhost-user/libvhost-user.c [new file with mode: 0644]
contrib/libvhost-user/libvhost-user.h [new file with mode: 0644]