NH_ALL/NSNH_ALL corresponds to a domain granularity invalidation, ie. all the notifier range gets invalidation, whatever the ASID. So let's set the granularity to IOMMU_INV_GRAN_DOMAIN to allow the consumer to benefit from the info if it can.
Signed-off-by: Eric Auger <eric.au...@redhat.com> Suggested-by: chenxiang (M) <chenxian...@hisilicon.com> --- hw/arm/smmu-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c index 0ba3dca3b8..c33d03de67 100644 --- a/hw/arm/smmu-common.c +++ b/hw/arm/smmu-common.c @@ -478,6 +478,7 @@ static void smmu_unmap_notifier_range(IOMMUNotifier *n) event.entry.iova = n->start; event.entry.perm = IOMMU_NONE; event.entry.addr_mask = n->end - n->start; + event.entry.granularity = IOMMU_INV_GRAN_DOMAIN; memory_region_notify_iommu_one(n, &event); } -- 2.26.3