hw/arm/smmuv3: Add notifications on invalidation
commit832e4222c82071e4399cffdecd605abed5ac0c27
authorEric Auger <eric.auger@redhat.com>
Tue, 26 Jun 2018 16:50:42 +0000 (26 17:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Jun 2018 16:50:42 +0000 (26 17:50 +0100)
treed48f9f61abf26ee9b2bd77aa3fbfca3f3d4213b8
parentcc27ed81cf11d5b7ffc7eca9f31dfcd82c983c56
hw/arm/smmuv3: Add notifications on invalidation

On TLB invalidation commands, let's call registered
IOMMU notifiers. Those can only be UNMAP notifiers.
SMMUv3 does not support notification on MAP (VFIO).

This patch allows vhost use case where IOTLB API is notified
on each guest IOTLB invalidation.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1529653501-15358-5-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c
hw/arm/smmuv3.c
hw/arm/trace-events
include/hw/arm/smmu-common.h