diff options
author | Longpeng <longpeng2@huawei.com> | 2022-03-15 11:25:53 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-03-28 16:53:00 -0400 |
commit | b04d910af330b55e1d5d6eb9ecd53a375a9cf81c (patch) | |
tree | 21325d43a9ba2f7277bc9991d60eef9617596ea6 /include | |
parent | 81d46d693173a5c86a9b0c648eca1817ad5c0ae5 (diff) | |
download | lwn-b04d910af330b55e1d5d6eb9ecd53a375a9cf81c.tar.gz lwn-b04d910af330b55e1d5d6eb9ecd53a375a9cf81c.zip |
vdpa: support exposing the count of vqs to userspace
- GET_VQS_COUNT: the count of virtqueues that exposed
Signed-off-by: Longpeng <longpeng2@huawei.com>
Link: https://lore.kernel.org/r/20220315032553.455-4-longpeng2@huawei.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Longpeng <<a href="mailto:longpeng2@huawei.com" target="_blank">longpeng2@huawei.com</a>><br>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/vhost.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h index bc74e95a273a..5d99e7c242a2 100644 --- a/include/uapi/linux/vhost.h +++ b/include/uapi/linux/vhost.h @@ -154,4 +154,7 @@ /* Get the config size */ #define VHOST_VDPA_GET_CONFIG_SIZE _IOR(VHOST_VIRTIO, 0x79, __u32) +/* Get the count of all virtqueues */ +#define VHOST_VDPA_GET_VQS_COUNT _IOR(VHOST_VIRTIO, 0x80, __u32) + #endif |