hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
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)