[PATCH 0/1] hw/arm/smmu: Add access flag handling

Joe Komlodi posted 1 patch 2 years, 9 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1627687022-366528-1-git-send-email-joe.komlodi@xilinx.com
Maintainers: Peter Maydell <peter.maydell@linaro.org>, Eric Auger <eric.auger@redhat.com>
hw/arm/smmu-common.c         | 7 +++++++
hw/arm/smmu-internal.h       | 8 ++++++++
hw/arm/smmuv3-internal.h     | 1 +
hw/arm/smmuv3.c              | 1 +
include/hw/arm/smmu-common.h | 1 +
5 files changed, 18 insertions(+)
[PATCH 0/1] hw/arm/smmu: Add access flag handling
Posted by Joe Komlodi 2 years, 9 months ago
Hi all,

This adds a check in SMMU PTW to see if the access flag bit is set in a PTE, and
if we should fault accordingly or not.

Since we do not support HTTU, the check itself is pretty simple:
If AFFD == 0 in the context descriptor and AF == 0 in the PTE, we fault.
Otherwise, we do not have an access fault.

Thanks!
Joe

Joe Komlodi (1):
  hw/arm/smmu: Add access flag handling

 hw/arm/smmu-common.c         | 7 +++++++
 hw/arm/smmu-internal.h       | 8 ++++++++
 hw/arm/smmuv3-internal.h     | 1 +
 hw/arm/smmuv3.c              | 1 +
 include/hw/arm/smmu-common.h | 1 +
 5 files changed, 18 insertions(+)

-- 
2.7.4