hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/tools/virtio/linux/virtio_config.h
....@@ -42,16 +42,16 @@
4242 (__virtio_test_bit((dev), feature))
4343
4444 /**
45
- * virtio_has_iommu_quirk - determine whether this device has the iommu quirk
45
+ * virtio_has_dma_quirk - determine whether this device has the DMA quirk
4646 * @vdev: the device
4747 */
48
-static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev)
48
+static inline bool virtio_has_dma_quirk(const struct virtio_device *vdev)
4949 {
5050 /*
5151 * Note the reverse polarity of the quirk feature (compared to most
5252 * other features), this is for compatibility with legacy systems.
5353 */
54
- return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM);
54
+ return !virtio_has_feature(vdev, VIRTIO_F_ACCESS_PLATFORM);
5555 }
5656
5757 static inline bool virtio_is_little_endian(struct virtio_device *vdev)