Signed-off-by: jiaqingtong jiaqingtong@huawei.com --- drivers/vfio/vfio_iommu_type1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index 9edc28f4a2d1..74e1211d9aaf 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio/vfio_iommu_type1.c @@ -1356,7 +1356,7 @@ static void vfio_dma_dirty_log_switch(struct vfio_iommu *iommu, if (!d->iommu_hwdbm) continue; WARN_ON(iommu_switch_dirty_log(d->domain, enable, dma->iova, - dma->size, d->prot | dma->prot)); + dma->size, IOMMU_CACHE | dma->prot)); } }
@@ -2253,7 +2253,7 @@ static void vfio_domain_dirty_log_switch(struct vfio_iommu *iommu, if (!dma->iommu_mapped) continue; WARN_ON(iommu_switch_dirty_log(d->domain, enable, dma->iova, - dma->size, d->prot | dma->prot)); + dma->size, IOMMU_CACHE | dma->prot)); } }