W dniu 25.03.2024 o 11:13, Mostafa Saleh pisze:
Currently, QEMU supports emulating either stage-1 or stage-2 SMMUs
but not nested instances.
This patch series adds support for nested translation in SMMUv3,
this is controlled by property “arm-smmuv3.stage=nested”, and
advertised to guests as (IDR0.S1P == 1 && IDR0.S2P == 2)
From pure curiosity I applied the series, enabled 'nested' one in
sbsa-ref and ran (S)BSA ACS tests.
Two more tests passed. Ones which check does SMMU supports both stage1
and stage2 at same time.
The fun part? Those tests only check SMMU registers.