hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/include/uapi/linux/virtio_config.h
....@@ -67,13 +67,26 @@
6767 #define VIRTIO_F_VERSION_1 32
6868
6969 /*
70
- * If clear - device has the IOMMU bypass quirk feature.
71
- * If set - use platform tools to detect the IOMMU.
70
+ * If clear - device has the platform DMA (e.g. IOMMU) bypass quirk feature.
71
+ * If set - use platform DMA tools to access the memory.
7272 *
7373 * Note the reverse polarity (compared to most other features),
7474 * this is for compatibility with legacy systems.
7575 */
76
-#define VIRTIO_F_IOMMU_PLATFORM 33
76
+#define VIRTIO_F_ACCESS_PLATFORM 33
77
+#ifndef __KERNEL__
78
+/* Legacy name for VIRTIO_F_ACCESS_PLATFORM (for compatibility with old userspace) */
79
+#define VIRTIO_F_IOMMU_PLATFORM VIRTIO_F_ACCESS_PLATFORM
80
+#endif /* __KERNEL__ */
81
+
82
+/* This feature indicates support for the packed virtqueue layout. */
83
+#define VIRTIO_F_RING_PACKED 34
84
+
85
+/*
86
+ * This feature indicates that memory accesses by the driver and the
87
+ * device are ordered in a way described by the platform.
88
+ */
89
+#define VIRTIO_F_ORDER_PLATFORM 36
7790
7891 /*
7992 * Does the device support Single Root I/O Virtualization?