Re: [RFC v5 06/28] hw/arm/smmuv3: Plumb transaction attributes into config helpers
Pierrick Bouvier <[email protected]>
| Newsgroups | org.nongnu.qemu-arm,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 8/13/2026 9:24 AM, Tao Tang wrote: > Introduce helpers that derive MemTxAttrs and select an AddressSpace from > SEC_SID, then pass SEC_SID through the Stream Table and Context Descriptor > fetch paths. This makes reads of SMMU configuration structures use the > corresponding Non-secure or Secure memory context. > > To support these helpers, include hw/arm/arm-security.h from smmu-common.h, > making the Arm security-space definitions available to the common SMMU code. > > The accelerated path remains Non-secure-only and therefore passes > SMMU_SEC_SID_NS explicitly. > > For now, the configuration cache lookup key remains based solely on the > SMMUDevice pointer. It is extended with SEC_SID in a later commit. Other > SEC_SID-sensitive memory accesses that still use the Non-secure address > space are converted in follow-up commits. > > Signed-off-by: Tao Tang <[email protected]> > --- > hw/arm/smmu-common.c | 30 +++++++++++++++++++++---- > hw/arm/smmuv3-accel.c | 2 +- > hw/arm/smmuv3-internal.h | 3 ++- > hw/arm/smmuv3.c | 43 ++++++++++++++++++++++-------------- > include/hw/arm/smmu-common.h | 10 +++++++++ > 5 files changed, 65 insertions(+), 23 deletions(-) > Reviewed-by: Pierrick Bouvier <[email protected]>