1
0
Fork 0
mirror of https://passt.top/passt synced 2025-07-07 20:48:43 +02:00

vhost-user: introduce vhost-user API

Add vhost_user.c and vhost_user.h that define the functions needed
to implement vhost-user backend.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
This commit is contained in:
Laurent Vivier 2024-11-13 09:04:02 +01:00 committed by Stefano Brivio
parent 119b45358c
commit 23cc8f892f
4 changed files with 1181 additions and 2 deletions

View file

@ -105,6 +105,7 @@ struct vu_dev_region {
* @protocol_features: Vhost-user protocol features
*/
struct vu_dev {
struct ctx *context;
uint32_t nregions;
struct vu_dev_region regions[VHOST_USER_MAX_RAM_SLOTS];
struct vu_virtq vq[VHOST_USER_MAX_QUEUES];