diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-15 13:59:14 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-10-15 15:35:32 +0100 |
commit | 569e4f7782fb92d0e1b395b5fb01de642dd74dcf (patch) | |
tree | ef6aabacf8524f4adbcf7b0b9fbc0c2d3c2b282a /include/linux/intel-svm.h | |
parent | 0204a49609824163092c32a8aeb073f7e9acc76d (diff) | |
download | linux-stable-569e4f7782fb92d0e1b395b5fb01de642dd74dcf.tar.gz linux-stable-569e4f7782fb92d0e1b395b5fb01de642dd74dcf.tar.bz2 linux-stable-569e4f7782fb92d0e1b395b5fb01de642dd74dcf.zip |
iommu/vt-d: Implement SVM_FLAG_PRIVATE_PASID to allocate unique PASIDs
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/intel-svm.h')
-rw-r--r-- | include/linux/intel-svm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/intel-svm.h b/include/linux/intel-svm.h index 239f8a13a332..dd94ab45a4db 100644 --- a/include/linux/intel-svm.h +++ b/include/linux/intel-svm.h @@ -31,6 +31,17 @@ struct svm_dev_ops { #define SVM_REQ_EXEC (1<<1) #define SVM_REQ_PRIV (1<<0) + +/* + * The SVM_FLAG_PRIVATE_PASID flag requests a PASID which is *not* the "main" + * PASID for the current process. Even if a PASID already exists, a new one + * will be allocated. And the PASID allocated with SVM_FLAG_PRIVATE_PASID + * will not be given to subsequent callers. This facility allows a driver to + * disambiguate between multiple device contexts which access the same MM, + * if there is no other way to do so. It should be used sparingly, if at all. + */ +#define SVM_FLAG_PRIVATE_PASID (1<<0) + /** * intel_svm_bind_mm() - Bind the current process to a PASID * @dev: Device to be granted acccess |