]> Git Repo - qemu.git/blobdiff - hw/misc/vfio.c
sPAPR/IOMMU: Fix TCE entry permission
[qemu.git] / hw / misc / vfio.c
index aef4c9ce9db14019c024b91d28f8e4079cc42400..0b9eba0c849bf1592120c1a3b58f643d8d37bdbd 100644 (file)
@@ -2489,7 +2489,7 @@ static void vfio_iommu_map_notify(Notifier *n, void *data)
         return;
     }
 
-    if (iotlb->perm != IOMMU_NONE) {
+    if ((iotlb->perm & IOMMU_RW) != IOMMU_NONE) {
         vaddr = memory_region_get_ram_ptr(mr) + xlat;
 
         ret = vfio_dma_map(container, iotlb->iova,
This page took 0.029774 seconds and 4 git commands to generate.