diff options
author | 2023-11-29 12:44:40 +0100 | |
---|---|---|
committer | 2023-11-29 14:15:20 +0000 | |
commit | 274aa4832d16af5a6b10ffe6021b278bffca4eb8 (patch) | |
tree | 5b8bb165d7c593504188ba7ecd85bdeb86fcf1af /vhost_user_loopback.c | |
parent | 9ad83030ef18c04beae09a6acf9800378a8378bc (diff) |
Add vhost-user support for the virtio-can device
Enables support to probe, handle and connect virtio-can device
with vhost-user-can via the virtio-loopback-adapter
Depends: 29398
Bug-AGL: SPEC-4834
Change-Id: I31e328aee25b101f51911eab6fd15dc3dd78c771
Signed-off-by: Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com>
Diffstat (limited to 'vhost_user_loopback.c')
-rw-r--r-- | vhost_user_loopback.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vhost_user_loopback.c b/vhost_user_loopback.c index 85b9405..31830ae 100644 --- a/vhost_user_loopback.c +++ b/vhost_user_loopback.c @@ -847,7 +847,8 @@ static int vhost_user_fill_set_mem_table_msg(struct vhost_user *u, u->region_rb_offset[i] = offset; u->region_rb[i] = mr->ram_block; } else if (*fd_num == VHOST_MEMORY_BASELINE_NREGIONS) { - DBG("Failed preparing vhost-user memory table msg: %d\n", *fd_num); + DBG("Failed preparing vhost-user memory table msg: %lu\n", + *fd_num); return -1; } vhost_user_fill_msg_region(®ion_buffer, reg, offset); @@ -1180,7 +1181,7 @@ int vhost_user_set_mem_table(struct vhost_dev *dev) } /* Update message parameters */ - DBG("\nfd_num: %d\n", fd_num); + DBG("\nfd_num: %lu\n", fd_num); msg.fd_num = fd_num; memcpy(msg.fds, fds, fd_num * sizeof(int)); @@ -1585,14 +1586,14 @@ void vhost_dev_init(struct vhost_dev *vhdev) */ vhdev->features = features; - DBG("vhdev->backend_features 0x%llx\n", vhdev->backend_features); - DBG("vhdev->features 0x%llx\n", vhdev->features); + DBG("vhdev->backend_features 0x%lx\n", vhdev->backend_features); + DBG("vhdev->features 0x%lx\n", vhdev->features); } int vhost_user_set_vring_enable(struct vhost_dev *dev, int enable) { int i; - DBG("vhost_user_set_vring_enable not yet implemented\n"); + DBG("vhost_user_set_vring_enable:\n"); if (!virtio_has_feature(dev->features, VHOST_USER_F_PROTOCOL_FEATURES)) { DBG("Does not have VHOST_USER_F_PROTOCOL_FEATURES\n"); |