Commit 21d56f9c authored by Kunkun Jiang's avatar Kunkun Jiang Committed by Zheng Zengkai
Browse files

iommu/io-pgtable-arm: Remove the limitation on the page table format of sync/clear_dirty_log()

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I401IF


CVE: NA

------------------------------

sync/clear_dirty_log() support other Arm types of page table
formats, except 32/64-bit stage 1 format. So it'd better to
remove the limination.

Signed-off-by: default avatarKunkun Jiang <jiangkunkun@huawei.com>
Reviewed-by: default avatarKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 524f1339
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -979,10 +979,6 @@ static int arm_lpae_sync_dirty_log(struct io_pgtable_ops *ops,
	if (WARN_ON(iaext))
		return -EINVAL;

	if (data->iop.fmt != ARM_64_LPAE_S1 &&
	    data->iop.fmt != ARM_32_LPAE_S1)
		return -EINVAL;

	return __arm_lpae_sync_dirty_log(data, iova, size, lvl, ptep,
					 bitmap, base_iova, bitmap_pgshift);
}
@@ -1075,10 +1071,6 @@ static int arm_lpae_clear_dirty_log(struct io_pgtable_ops *ops,
	if (WARN_ON(iaext))
		return -EINVAL;

	if (data->iop.fmt != ARM_64_LPAE_S1 &&
	    data->iop.fmt != ARM_32_LPAE_S1)
		return -EINVAL;

	return __arm_lpae_clear_dirty_log(data, iova, size, lvl, ptep,
			bitmap, base_iova, bitmap_pgshift);
}