hw/arm/smmuv3: Introduce smmuv3_s1_range_inval() helper
commitc0f9ef70377cfcbd0fa6559d5dc729a930d71b7c
authorEric Auger <eric.auger@redhat.com>
Tue, 28 Jul 2020 15:08:10 +0000 (28 17:08 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Aug 2020 09:02:06 +0000 (24 10:02 +0100)
tree67977a43cf40f9438cfd61758b425c7904044247
parent9e54dee71fcfaae69f87b8e1f51485a832266a39
hw/arm/smmuv3: Introduce smmuv3_s1_range_inval() helper

Let's introduce an helper for S1 IOVA range invalidation.
This will be used for NH_VA and NH_VAA commands. It decodes
the same fields, trace, calls the UNMAP notifiers and
invalidate the corresponding IOTLB entries.

At the moment, we do not support 3.2 range invalidation yet.
So it reduces to a single IOVA invalidation.

Note the leaf bit now is also decoded for the CMD_TLBI_NH_VAA
command. At the moment it is only used for tracing.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20200728150815.11446-7-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmuv3.c
hw/arm/trace-events