diff options
author | Yu Zhao <yu.zhao@intel.com> | 2009-05-18 01:51:37 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-05-18 09:46:26 -0400 |
commit | 93a23a7271dfb811b3adb72779054c3a24433112 (patch) | |
tree | 1a5d92b6816bd3bd7f2ac6c342d9b98ec202ed40 /include | |
parent | 9dd2fe89062c90a964d122b8be5615d6f2203bbe (diff) |
VT-d: support the device IOTLB
Enable the device IOTLB (i.e. ATS) for both the bare metal and KVM
environments.
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dma_remapping.h | 1 | ||||
-rw-r--r-- | include/linux/intel-iommu.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index e0a03aff63d9..5619f8522738 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #define DMA_PTE_SNP (1 << 11) | 14 | #define DMA_PTE_SNP (1 << 11) |
15 | 15 | ||
16 | #define CONTEXT_TT_MULTI_LEVEL 0 | 16 | #define CONTEXT_TT_MULTI_LEVEL 0 |
17 | #define CONTEXT_TT_DEV_IOTLB 1 | ||
17 | #define CONTEXT_TT_PASS_THROUGH 2 | 18 | #define CONTEXT_TT_PASS_THROUGH 2 |
18 | 19 | ||
19 | struct intel_iommu; | 20 | struct intel_iommu; |
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 40561b224a17..482dc91fd53a 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h | |||
@@ -124,6 +124,7 @@ static inline void dmar_writeq(void __iomem *addr, u64 val) | |||
124 | #define ecap_pass_through(e) ((e >> 6) & 0x1) | 124 | #define ecap_pass_through(e) ((e >> 6) & 0x1) |
125 | #define ecap_eim_support(e) ((e >> 4) & 0x1) | 125 | #define ecap_eim_support(e) ((e >> 4) & 0x1) |
126 | #define ecap_ir_support(e) ((e >> 3) & 0x1) | 126 | #define ecap_ir_support(e) ((e >> 3) & 0x1) |
127 | #define ecap_dev_iotlb_support(e) (((e) >> 2) & 0x1) | ||
127 | #define ecap_max_handle_mask(e) ((e >> 20) & 0xf) | 128 | #define ecap_max_handle_mask(e) ((e >> 20) & 0xf) |
128 | #define ecap_sc_support(e) ((e >> 7) & 0x1) /* Snooping Control */ | 129 | #define ecap_sc_support(e) ((e >> 7) & 0x1) /* Snooping Control */ |
129 | 130 | ||