Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio: virtio_has_iommu_quirk -> virtio_has_dma_quirk

Now that the corresponding feature bit has been renamed,
rename the quirk too - it's about special ways to
do DMA, not necessarily about the IOMMU.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

+8 -8
+1 -1
drivers/gpu/drm/virtio/virtgpu_object.c
··· 141 141 struct virtio_gpu_mem_entry **ents, 142 142 unsigned int *nents) 143 143 { 144 - bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); 144 + bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev); 145 145 struct virtio_gpu_object_shmem *shmem = to_virtio_gpu_shmem(bo); 146 146 struct scatterlist *sg; 147 147 int si, ret;
+2 -2
drivers/gpu/drm/virtio/virtgpu_vq.c
··· 599 599 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(objs->objs[0]); 600 600 struct virtio_gpu_transfer_to_host_2d *cmd_p; 601 601 struct virtio_gpu_vbuffer *vbuf; 602 - bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); 602 + bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev); 603 603 struct virtio_gpu_object_shmem *shmem = to_virtio_gpu_shmem(bo); 604 604 605 605 if (use_dma_api) ··· 1015 1015 struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(objs->objs[0]); 1016 1016 struct virtio_gpu_transfer_host_3d *cmd_p; 1017 1017 struct virtio_gpu_vbuffer *vbuf; 1018 - bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); 1018 + bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev); 1019 1019 struct virtio_gpu_object_shmem *shmem = to_virtio_gpu_shmem(bo); 1020 1020 1021 1021 if (use_dma_api)
+1 -1
drivers/virtio/virtio_ring.c
··· 240 240 241 241 static bool vring_use_dma_api(struct virtio_device *vdev) 242 242 { 243 - if (!virtio_has_iommu_quirk(vdev)) 243 + if (!virtio_has_dma_quirk(vdev)) 244 244 return true; 245 245 246 246 /* Otherwise, we are left to guess. */
+2 -2
include/linux/virtio_config.h
··· 162 162 } 163 163 164 164 /** 165 - * virtio_has_iommu_quirk - determine whether this device has the iommu quirk 165 + * virtio_has_dma_quirk - determine whether this device has the DMA quirk 166 166 * @vdev: the device 167 167 */ 168 - static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev) 168 + static inline bool virtio_has_dma_quirk(const struct virtio_device *vdev) 169 169 { 170 170 /* 171 171 * Note the reverse polarity of the quirk feature (compared to most
+2 -2
tools/virtio/linux/virtio_config.h
··· 42 42 (__virtio_test_bit((dev), feature)) 43 43 44 44 /** 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 46 46 * @vdev: the device 47 47 */ 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) 49 49 { 50 50 /* 51 51 * Note the reverse polarity of the quirk feature (compared to most