hw/arm/smmuv3: add support for stage 1 access fault
authorLuc Michel <luc.michel@amd.com>
Tue, 13 Feb 2024 08:22:11 +0000 (09:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Feb 2024 13:38:11 +0000 (13:38 +0000)
commit15f6c16e6e4b418a1dabad6704917bdb6ee883f4
tree26f04b37b6b434248dea5105e99bbd0bb734572a
parentbfe30b02e7018ff0fa9fd8a7342ce5c4cb5ca40c
hw/arm/smmuv3: add support for stage 1 access fault

An access fault is raised when the Access Flag is not set in the
looked-up PTE and the AFFD field is not set in the corresponding context
descriptor. This was already implemented for stage 2. Implement it for
stage 1 as well.

Signed-off-by: Luc Michel <luc.michel@amd.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Message-id: 20240213082211.3330400-1-luc.michel@amd.com
[PMM: tweaked comment text]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c
hw/arm/smmuv3-internal.h
hw/arm/smmuv3.c
include/hw/arm/smmu-common.h