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:
parent
119b45358c
commit
23cc8f892f
4 changed files with 1181 additions and 2 deletions
1
virtio.h
1
virtio.h
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue