[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 02/10] update linux headers
From: |
Longpeng(Mike) |
Subject: |
[PATCH v3 02/10] update linux headers |
Date: |
Sat, 19 Mar 2022 15:20:04 +0800 |
From: Longpeng <longpeng2@huawei.com>
Update linux headers to 5.xxx (kernel part is not merged yet)
To support generic vdpa deivce, we need add the following ioctls:
- VHOST_VDPA_GET_CONFIG_SIZE: get the configuration size.
- VHOST_VDPA_GET_VQS_COUNT: get the count of supported virtqueues.
Signed-off-by: Longpeng <longpeng2@huawei.com>
---
linux-headers/linux/vhost.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/linux-headers/linux/vhost.h b/linux-headers/linux/vhost.h
index c998860d7b..5d99e7c242 100644
--- a/linux-headers/linux/vhost.h
+++ b/linux-headers/linux/vhost.h
@@ -150,4 +150,11 @@
/* Get the valid iova range */
#define VHOST_VDPA_GET_IOVA_RANGE _IOR(VHOST_VIRTIO, 0x78, \
struct vhost_vdpa_iova_range)
+
+/* 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
--
2.23.0
- [PATCH v3 00/10] add generic vDPA device support, Longpeng(Mike), 2022/03/19
- [PATCH v3 01/10] virtio: get class_id and pci device id by the virtio id, Longpeng(Mike), 2022/03/19
- [PATCH v3 05/10] vdpa-dev: implement the realize interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 04/10] vdpa-dev: implement the instance_init/class_init interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 02/10] update linux headers,
Longpeng(Mike) <=
- [PATCH v3 08/10] vdpa-dev: implement the get_features interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 06/10] vdpa-dev: implement the unrealize interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 03/10] vdpa: add the infrastructure of vdpa-dev, Longpeng(Mike), 2022/03/19
- [PATCH v3 10/10] vdpa-dev: mark the device as unmigratable, Longpeng(Mike), 2022/03/19
- [PATCH v3 07/10] vdpa-dev: implement the get_config/set_config interface, Longpeng(Mike), 2022/03/19
- [PATCH v3 09/10] vdpa-dev: implement the set_status interface, Longpeng(Mike), 2022/03/19
- Re: [PATCH v3 00/10] add generic vDPA device support, Stefano Garzarella, 2022/03/28