Skip to contentSkip to conversation

vhost: move the backend feature bits to vhost_types.h

RFC PATCH New Gautam Dawar 1 participant 1 message Feb 24, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

RFC PATCH v2 1/19 vhost: move the backend feature bits to vhost_types.h

We should store feature bits in vhost_types.h as what has been done for e.g VHOST_F_LOG_ALL.

---
 include/uapi/linux/vhost.h       | 5 -----
 include/uapi/linux/vhost_types.h | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)
include/uapi/linux/vhost.h +0 -5
index c998860d7bbc..59c6c0fbaba1 100644
@@ -89,11 +89,6 @@
 
 /* Set or get vhost backend capability */
 
-/* Use message type V2 */
-#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1
-/* IOTLB can accept batching hints */
-#define VHOST_BACKEND_F_IOTLB_BATCH  0x2
-
 #define VHOST_SET_BACKEND_FEATURES _IOW(VHOST_VIRTIO, 0x25, __u64)
 #define VHOST_GET_BACKEND_FEATURES _IOR(VHOST_VIRTIO, 0x26, __u64)
 
include/uapi/linux/vhost_types.h +5 -0
index f7f6a3a28977..76ee7016c501 100644
@@ -153,4 +153,9 @@ struct vhost_vdpa_iova_range {
 /* vhost-net should add virtio_net_hdr for RX, and strip for TX packets. */
 #define VHOST_NET_F_VIRTIO_NET_HDR 27
 
+/* Use message type V2 */
+#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1
+/* IOTLB can accept batching hints */
+#define VHOST_BACKEND_F_IOTLB_BATCH  0x2
+
 #endif
Signature · 1 line
2.25.0