]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/smmuv3: Pass the actual perm to returned IOMMUTLBEntry in smmuv3_translate()
authorXiang Chen <chenxiang66@hisilicon.com>
Sat, 16 Apr 2022 07:38:15 +0000 (15:38 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Apr 2022 13:44:55 +0000 (14:44 +0100)
commitc3ca7d56c4790c2223122f7e84b71161cd36dbce
treea202fba93720aeb621e086d0282478a1160ec9f1
parent2c2c65c01ecc474410688f4524e6fd22d2934905
hw/arm/smmuv3: Pass the actual perm to returned IOMMUTLBEntry in smmuv3_translate()

It always calls the IOMMU MR translate() callback with flag=IOMMU_NONE in
memory_region_iommu_replay(). Currently, smmuv3_translate() return an
IOMMUTLBEntry with perm set to IOMMU_NONE even if the translation success,
whereas it is expected to return the actual permission set in the table
entry.
So pass the actual perm to returned IOMMUTLBEntry in the table entry.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 1650094695-121918-1-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmuv3.c