iommu/vt-d: Clear pasid table entry when memory unbound
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 3 Nov 2017 16:51:34 +0000 (10:51 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 3 Nov 2017 16:51:34 +0000 (10:51 -0600)
commit4fa064b26c2eb9e1c38460ba327765dff16a4b14
treedad10948cb5ed2933375afbee03d29d25786c76e
parent973b546451fdf11e518cc96d1b137af893a38db5
iommu/vt-d: Clear pasid table entry when memory unbound

In intel_svm_unbind_mm(), pasid table entry must be cleared during
svm free. Otherwise, hardware may be set up with a wild pointer.

Suggested-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/intel-svm.c