hw/arm/smmuv3: Handle translation faults according to SMMUPTWEventInfo
commitf9131185937c16da9258a565bbfc543e238d323b
authorMostafa Saleh <smostafa@google.com>
Mon, 15 Jul 2024 08:45:16 +0000 (15 08:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Jul 2024 12:49:30 +0000 (18 13:49 +0100)
tree1b5829ff6b3a7b95a60042d868f9ac4a883352a5
parent46727727965f0d0769f167e300bf11aca77aadd6
hw/arm/smmuv3: Handle translation faults according to SMMUPTWEventInfo

Previously, to check if faults are enabled, it was sufficient to check
the current stage of translation and check the corresponding
record_faults flag.

However, with nesting, it is possible for stage-1 (nested) translation
to trigger a stage-2 fault, so we check SMMUPTWEventInfo as it would
have the correct stage set from the page table walk.

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-17-smostafa@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmuv3.c