Rename the bit to match latest virtio spec. Add a compat macro to avoid breaking existing userspace.
Showing the changes to include/uapi (1 of 10 files). Show all
Unified · Split
| @@ -67,13 +67,17 @@ · 66 unmodified lines | |||
| 67 | #define VIRTIO_F_VERSION_1 32 | 67 | #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 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__ */ | ||
| 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 34 | 83 | #define VIRTIO_F_RING_PACKED 34 |