Commit 79d82ce
iommu/vt-d: Check device list of domain in domain free path
When the IOMMU domain is about to be freed, it should not be set on any
device. Instead of silently dealing with some bug cases, it's better to
trigger a warning to report and fix any potential bugs at the first time.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20220706025524.2904370-9-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 8430fd3 commit 79d82ce
1 file changed
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | 297 | | |
299 | 298 | | |
300 | 299 | | |
| |||
1841 | 1840 | | |
1842 | 1841 | | |
1843 | 1842 | | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | 1843 | | |
1849 | 1844 | | |
1850 | 1845 | | |
1851 | 1846 | | |
1852 | 1847 | | |
1853 | 1848 | | |
1854 | 1849 | | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1855 | 1853 | | |
1856 | 1854 | | |
1857 | 1855 | | |
| |||
2333 | 2331 | | |
2334 | 2332 | | |
2335 | 2333 | | |
2336 | | - | |
2337 | | - | |
2338 | | - | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
2345 | | - | |
2346 | 2334 | | |
2347 | 2335 | | |
2348 | 2336 | | |
| |||
0 commit comments