From 274aa4832d16af5a6b10ffe6021b278bffca4eb8 Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Wed, 29 Nov 2023 12:44:40 +0100 Subject: 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 --- virtio_loopback.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'virtio_loopback.h') diff --git a/virtio_loopback.h b/virtio_loopback.h index 34bae2f..cd59a5a 100644 --- a/virtio_loopback.h +++ b/virtio_loopback.h @@ -364,6 +364,7 @@ typedef struct VHostUserBlk VHostUserBlk; typedef struct VhostUserInput VhostUserInput; typedef struct VHostUserGPIO VHostUserGPIO; typedef struct VHostUserSound VHostUserSound; +typedef struct VHostUserCan VHostUserCan; typedef struct VirtioBus VirtioBus; typedef struct VirtIODevice { @@ -405,6 +406,7 @@ typedef struct VirtIODevice { VhostUserInput *vhuinput; VHostUserSound *vhusnd; VHostUserGPIO *vhugpio; + VHostUserCan *vhucan; } VirtIODevice; typedef struct efd_data { @@ -659,7 +661,9 @@ uint32_t get_vqs_max_size(VirtIODevice *vdev); * Legacy name for VIRTIO_F_ACCESS_PLATFORM * (for compatibility with old userspace) */ +#ifndef VIRTIO_F_IOMMU_PLATFORM #define VIRTIO_F_IOMMU_PLATFORM 33 +#endif /* QEMU Aligned functions */ /* -- cgit 1.2.3-korg