History

virtio: VIRTIO_F_IOMMU_PLATFORM -> VIRTIO_F_ACCESS_PLATFORM

Rename the bit to match latest virtio spec. Add a compat macro to avoid breaking existing userspace.

Michael S. Tsirkin committed 6 years ago

Commit 321bd211 parent bcf876810 files · +18 −14Browse files

Showing the changes to include/uapi/linux (1 of 10 files). Show all

Unified · Split

include/uapi/linux/virtio_config.h+7−3
@@ -67,13 +67,17 @@ · 66 unmodified lines
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__ */
7781
7882 /* This feature indicates support for the packed virtqueue layout. */
7983 #define VIRTIO_F_RING_PACKED 34