diff options
author | Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com> | 2022-12-16 11:34:51 +0100 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-03 15:18:54 +0300 |
commit | 9a58d030b9d4d7db297ed0b5d716580526058f78 (patch) | |
tree | a90e3aed2a49808a8ca7647a935da4a497cb1f73 /virtio_loopback.h | |
parent | 8b82f2a4574e70ad1667c53a6fa6e896d9cb8d77 (diff) |
Virtio-loopback-adapter Delta release:
- Add queue num and size in the arguments
- Stop creating user-space threads for its virtio-loopback notification
Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
Diffstat (limited to 'virtio_loopback.h')
-rw-r--r-- | virtio_loopback.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/virtio_loopback.h b/virtio_loopback.h index 1fdb7db..e581d92 100644 --- a/virtio_loopback.h +++ b/virtio_loopback.h @@ -149,7 +149,8 @@ #define VIRT_VENDOR 0x554D4551 /* 'QEMU' */ #define VIRTQUEUE_MAX_SIZE 1024 -#define VIRTIO_QUEUE_MAX 1024 +#define VIRTIO_QUEUE_MAX VIRTQUEUE_MAX_SIZE + #define VIRTIO_NO_VECTOR 0xffff #define TYPE_VIRTIO_DEVICE "virtio-device" @@ -163,7 +164,7 @@ #define START_LOOPBACK _IOC(_IOC_WRITE, 'k', 3, \ sizeof(virtio_device_info_struct_t)) #define IRQ _IOC(_IOC_WRITE, 'k', 4, sizeof(int)) -#define SHARE_VQS _IOC(_IOC_WRITE, 'k', 5, 0) +#define SHARE_VQS _IOC(_IOC_WRITE, 'k', 5, sizeof(uint32_t)) #define SHARE_BUF _IOC(_IOC_WRITE, 'k', 6, sizeof(uint64_t)) #define USED_INFO _IOC(_IOC_WRITE, 'k', 7, 0) #define DATA_INFO _IOC(_IOC_WRITE, 'k', 8, 0) |