]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/iommu/intel-svm.c
iommu/vt-d: Helper function to query if a pasid has any active users
authorCQ Tang <cq.tang@intel.com>
Wed, 10 May 2017 18:39:03 +0000 (11:39 -0700)
committerJoerg Roedel <jroedel@suse.de>
Wed, 17 May 2017 12:57:56 +0000 (14:57 +0200)
commit15060aba717115dc9f204c02213a7c6bf341163e
tree7ecaa7018f3cf6259a8b0344f63d727dbfccbab2
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
iommu/vt-d: Helper function to query if a pasid has any active users

A driver would need to know if there are any active references to a
a PASID before cleaning up its resources. This function helps check
if there are any active users of a PASID before it can perform any
recovery on that device.

To: Joerg Roedel <joro@8bytes.org>
To: linux-kernel@vger.kernel.org
To: David Woodhouse <dwmw2@infradead.org>
Cc: Jean-Phillipe Brucker <jean-philippe.brucker@arm.com>
Cc: iommu@lists.linux-foundation.org
Signed-off-by: CQ Tang <cq.tang@intel.com>
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c
include/linux/intel-svm.h