diff mbox series

[RFC,v6,06/13] dma/rc4030: Mark all IOMMUTLBEntry as IOMMU_IOTLB_NONE type

Message ID 20200826143651.7915-7-eperezma@redhat.com (mailing list archive)
State New, archived
Headers show
Series memory: Delete assertion in memory_region_unregister_iommu_notifier | expand

Commit Message

Eugenio Perez Martin Aug. 26, 2020, 2:36 p.m. UTC
Signed-off-by: Eugenio PĂ©rez <eperezma@redhat.com>
---
 hw/dma/rc4030.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c
index 7eddc9a776..8eee12b1cb 100644
--- a/hw/dma/rc4030.c
+++ b/hw/dma/rc4030.c
@@ -506,6 +506,7 @@  static IOMMUTLBEntry rc4030_dma_translate(IOMMUMemoryRegion *iommu, hwaddr addr,
         .translated_addr = 0,
         .addr_mask = DMA_PAGESIZE - 1,
         .perm = IOMMU_NONE,
+        .type = DEV_IOTLB_NONE,
     };
     uint64_t i, entry_address;
     dma_pagetable_entry entry;