hw/arm/smmuv3: Support nested SMMUs in smmuv3_notify_iova()
commit46727727965f0d0769f167e300bf11aca77aadd6
authorMostafa Saleh <smostafa@google.com>
Mon, 15 Jul 2024 08:45:15 +0000 (15 08:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Jul 2024 12:49:30 +0000 (18 13:49 +0100)
tree4c14b1a30f757a361ccbf5b0111c5d305973a9d0
parentb8fa4c233bd4235081080fca919159fd770db53f
hw/arm/smmuv3: Support nested SMMUs in smmuv3_notify_iova()

IOMMUTLBEvent only understands IOVA, for stage-1 or stage-2
SMMU instances we consider the input address as the IOVA, but when
nesting is used, we can't mix stage-1 and stage-2 addresses, so for
nesting only stage-1 is considered the IOVA and would be notified.

Signed-off-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20240715084519.1189624-16-smostafa@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmuv3.c
hw/arm/trace-events