iommu/vt-d: Move clflush'es from iotlb_sync_map() to map_pages()
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 20 Jul 2021 02:06:15 +0000 (10:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 Jul 2021 11:56:25 +0000 (13:56 +0200)
commit75cc1018a9e1e57d4ae43a101fc08a070894d439
treedde8f9d8f04f7b2a8d019bdfaff94bd851f5acad
parent3f34f125977685e591def32984c77e23a86075b0
iommu/vt-d: Move clflush'es from iotlb_sync_map() to map_pages()

As the Intel VT-d driver has switched to use the iommu_ops.map_pages()
callback, multiple pages of the same size will be mapped in a call.
There's no need to put the clflush'es in iotlb_sync_map() callback.
Move them back into __domain_mapping() to simplify the code.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210720020615.4144323-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c