diff options
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 5113c080f0c..65c9b58655f 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -1924,6 +1924,12 @@ static phys_addr_t amd_iommu_iova_to_phys(struct iommu_domain *dom, | |||
1924 | return paddr; | 1924 | return paddr; |
1925 | } | 1925 | } |
1926 | 1926 | ||
1927 | static int amd_iommu_domain_has_cap(struct iommu_domain *domain, | ||
1928 | unsigned long cap) | ||
1929 | { | ||
1930 | return 0; | ||
1931 | } | ||
1932 | |||
1927 | static struct iommu_ops amd_iommu_ops = { | 1933 | static struct iommu_ops amd_iommu_ops = { |
1928 | .domain_init = amd_iommu_domain_init, | 1934 | .domain_init = amd_iommu_domain_init, |
1929 | .domain_destroy = amd_iommu_domain_destroy, | 1935 | .domain_destroy = amd_iommu_domain_destroy, |
@@ -1932,5 +1938,6 @@ static struct iommu_ops amd_iommu_ops = { | |||
1932 | .map = amd_iommu_map_range, | 1938 | .map = amd_iommu_map_range, |
1933 | .unmap = amd_iommu_unmap_range, | 1939 | .unmap = amd_iommu_unmap_range, |
1934 | .iova_to_phys = amd_iommu_iova_to_phys, | 1940 | .iova_to_phys = amd_iommu_iova_to_phys, |
1941 | .domain_has_cap = amd_iommu_domain_has_cap, | ||
1935 | }; | 1942 | }; |
1936 | 1943 | ||