[PATCH v6 14/14] iommu/arm-smmu-v3: Set MEV bit in nested STE for DoS mitigations
Nicolin Chen
nicolinc at nvidia.com
Thu Feb 20 01:09:39 PST 2025
On Fri, Jan 24, 2025 at 04:30:43PM -0800, Nicolin Chen wrote:
> diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
> index ceeed907a714..20a0e39d7caa 100644
> --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
> +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
> @@ -43,6 +43,8 @@ static void arm_smmu_make_nested_cd_table_ste(
> target->data[0] |= nested_domain->ste[0] &
> ~cpu_to_le64(STRTAB_STE_0_CFG);
> target->data[1] |= nested_domain->ste[1];
> + /* Merge events for DoS mitigations on eventq */
> + target->data[1] |= STRTAB_STE_1_MEV;
This should have cpu_to_le64(). Fixed accordingly.
Thanks
Nicolin
More information about the linux-arm-kernel
mailing list