Commit ac1a348
iommu/vt-d: Add domain_flush_pasid_iotlb()
The VT-d spec requires to use PASID-based-IOTLB invalidation descriptor
to invalidate IOTLB and the paging-structure caches for a first-stage
page table. Add a generic helper to do this.
RID2PASID is used if the domain has been attached to a physical device,
otherwise real PASIDs that the domain has been attached to will be used.
The 'real' PASID attachment is handled in the subsequent change.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20230802212427.1497170-4-jacob.jun.pan@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 2dcebc7 commit ac1a348
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1470 | 1482 | | |
1471 | 1483 | | |
1472 | 1484 | | |
| |||
1484 | 1496 | | |
1485 | 1497 | | |
1486 | 1498 | | |
1487 | | - | |
| 1499 | + | |
1488 | 1500 | | |
1489 | 1501 | | |
1490 | 1502 | | |
| |||
1554 | 1566 | | |
1555 | 1567 | | |
1556 | 1568 | | |
1557 | | - | |
| 1569 | + | |
1558 | 1570 | | |
1559 | 1571 | | |
1560 | 1572 | | |
| |||
0 commit comments