hw/arm/smmu-common: Add missing size check for stage-1
authorMostafa Saleh <smostafa@google.com>
Mon, 15 Jul 2024 08:45:01 +0000 (08:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Jul 2024 12:49:29 +0000 (13:49 +0100)
commitbde809f05f66b4be4475ffa9819d82a01686d1c7
treed0c848ec8eadcd8ddc1ed27856e220e2b344d6a1
parent345acc443905eda8008a1d328dd89b73c4a3f89e
hw/arm/smmu-common: Add missing size check for stage-1

According to the SMMU architecture specification (ARM IHI 0070 F.b),
in “3.4 Address sizes”
    The address output from the translation causes a stage 1 Address Size
    fault if it exceeds the range of the effective IPA size for the given CD.

However, this check was missing.

There is already a similar check for stage-2 against effective PA.

Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Mostafa Saleh <smostafa@google.com>
Message-id: 20240715084519.1189624-2-smostafa@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c