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 (1 of 10 files). Show all

Unified · Split

include/uapi/linux/virtio_config.h+7−3
@@ -67,13 +67,17 @@ · 66 unmodified lines
67#define VIRTIO_F_VERSION_1 3267#define VIRTIO_F_VERSION_1 32
68 68
69/*69/*
70 * If clear - device has the IOMMU bypass quirk feature.70 * If clear - device has the platform DMA (e.g. IOMMU) bypass quirk feature.
71 * If set - use platform tools to detect the IOMMU.71 * If set - use platform DMA tools to access the memory.
72 *72 *
73 * Note the reverse polarity (compared to most other features),73 * Note the reverse polarity (compared to most other features),
74 * this is for compatibility with legacy systems.74 * this is for compatibility with legacy systems.
75 */75 */
76#define VIRTIO_F_IOMMU_PLATFORM 3376#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__ */
77 81
78/* This feature indicates support for the packed virtqueue layout. */82/* This feature indicates support for the packed virtqueue layout. */
79#define VIRTIO_F_RING_PACKED 3483#define VIRTIO_F_RING_PACKED 34