Commit 35a99c5
iommu/vt-d: Add blocking domain support
The Intel IOMMU hardwares support blocking DMA transactions by clearing
the translation table entries. This implements a real blocking domain to
avoid using an empty UNMANAGED domain. The detach_dev callback of the
domain ops is not used in any path. Remove it to avoid dead code as well.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20221118132451.114406-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent c7be17c commit 35a99c5
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
4162 | 4163 | | |
4163 | 4164 | | |
4164 | 4165 | | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
4165 | 4180 | | |
4166 | 4181 | | |
4167 | 4182 | | |
4168 | 4183 | | |
4169 | 4184 | | |
4170 | 4185 | | |
| 4186 | + | |
| 4187 | + | |
4171 | 4188 | | |
4172 | 4189 | | |
4173 | 4190 | | |
| |||
4200 | 4217 | | |
4201 | 4218 | | |
4202 | 4219 | | |
4203 | | - | |
| 4220 | + | |
4204 | 4221 | | |
4205 | 4222 | | |
4206 | 4223 | | |
| |||
4274 | 4291 | | |
4275 | 4292 | | |
4276 | 4293 | | |
4277 | | - | |
4278 | | - | |
4279 | | - | |
4280 | | - | |
4281 | | - | |
4282 | | - | |
4283 | 4294 | | |
4284 | 4295 | | |
4285 | 4296 | | |
| |||
4767 | 4778 | | |
4768 | 4779 | | |
4769 | 4780 | | |
4770 | | - | |
4771 | 4781 | | |
4772 | 4782 | | |
4773 | 4783 | | |
| |||
0 commit comments