diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-23 11:46:47 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-23 17:35:25 +0200 |
| commit | ab0c7fb22b56523f24d6e127cd4d10ecff67bf85 (patch) | |
| tree | 2b54fcbdc5b5b5457cbd764b29ad924d34437992 /linux-headers/linux/vhost.h | |
| parent | b40b8eb609d3549ac14aab43849b20f5cba951c9 (diff) | |
| download | focaccia-qemu-ab0c7fb22b56523f24d6e127cd4d10ecff67bf85.tar.gz focaccia-qemu-ab0c7fb22b56523f24d6e127cd4d10ecff67bf85.zip | |
linux-headers: update to current kvm/next
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers/linux/vhost.h')
| -rw-r--r-- | linux-headers/linux/vhost.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-headers/linux/vhost.h b/linux-headers/linux/vhost.h index 649560c685..bea6973906 100644 --- a/linux-headers/linux/vhost.h +++ b/linux-headers/linux/vhost.h @@ -227,4 +227,11 @@ */ #define VHOST_VDPA_GET_VRING_DESC_GROUP _IOWR(VHOST_VIRTIO, 0x7F, \ struct vhost_vring_state) + +/* Get the queue size of a specific virtqueue. + * userspace set the vring index in vhost_vring_state.index + * kernel set the queue size in vhost_vring_state.num + */ +#define VHOST_VDPA_GET_VRING_SIZE _IOWR(VHOST_VIRTIO, 0x80, \ + struct vhost_vring_state) #endif |