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>
Showing
- Makefile 1 addition, 0 deletionsMakefile
- Makefile.objs 1 addition, 1 deletionMakefile.objs
- contrib/libvhost-user/Makefile.objs 1 addition, 0 deletionscontrib/libvhost-user/Makefile.objs
- contrib/libvhost-user/libvhost-user.c 1499 additions, 0 deletionscontrib/libvhost-user/libvhost-user.c
- contrib/libvhost-user/libvhost-user.h 435 additions, 0 deletionscontrib/libvhost-user/libvhost-user.h
Loading
Please register or sign in to comment