diff options
author | Baoquan He <bhe@redhat.com> | 2017-08-09 11:33:40 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-08-15 19:14:39 +0300 |
commit | e01d1913b0d0817191418381a6fcebaa01abde2a (patch) | |
tree | 462e79ba6c2b8b9c590e392b8f4fbb508f52dc4b /include | |
parent | 53019a9e88cc14bae2780ba807faba87a5829891 (diff) | |
download | linux-e01d1913b0d0817191418381a6fcebaa01abde2a.tar.xz |
iommu: Add is_attach_deferred call-back to iommu-ops
This new call-back will be used to check if the domain attach need be
deferred for now. If yes, the domain attach/detach will return directly.
Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iommu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 2cb54adc4a33..63983c9e6c3a 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -225,6 +225,7 @@ struct iommu_ops { u32 (*domain_get_windows)(struct iommu_domain *domain); int (*of_xlate)(struct device *dev, struct of_phandle_args *args); + bool (*is_attach_deferred)(struct iommu_domain *domain, struct device *dev); unsigned long pgsize_bitmap; }; |