On 2/21/26 2:02 AM, Tao Tang wrote:
When decoding a Stream Table Entry (STE) from the Secure stream table
that enables stage-2 translation, verify that the SMMU implementation
advertises Secure stage-2 support via S_IDR1.SEL2. If stage-2 is
requested but S_IDR1.SEL2 is 0, mark the STE as ILLEGAL.
This implements the requirement from the Arm SMMUv3 architecture
specification (IHI 0070G.b, Section 5.2, Page 218) that a Secure STE
with stage-2 enabled is only valid when the implementation supports
Secure stage-2 translation.
Signed-off-by: Tao Tang <[email protected]>
---
hw/arm/smmuv3.c | 10 ++++++++++
1 file changed, 10 insertions(+)
Reviewed-by: Pierrick Bouvier <[email protected]>