Skip to content

iommu/vt-d: Add prq report and response support

Lu Baolu linux-iommu lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesIn review
  2. v24 patches 10 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Adress Kevin's review comments

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iommu/vt-d: Refactor device_to_iommu() helperdrivers/iommu/intel/iommu.c drivers/iommu/intel/svm.c include/linux/intel-iommu.h+21 -450 replies
2/4iommu/vt-d: Add a helper to get svm and sdev for pasiddrivers/iommu/intel/svm.c+68 -530 replies
3/4iommu/vt-d: Report page request faults for guest SVAdrivers/iommu/intel/svm.c+85 -182 replies
4/4iommu/vt-d: Add page response ops supportdrivers/iommu/intel/iommu.c drivers/iommu/intel/svm.c include/linux/intel-iommu.h+104 -04 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchKevin Tian
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] iommu/vt-d: Add prq report and response support

Hi,

This series adds page request event reporting and response support to the Intel IOMMU driver. This is necessary when the page requests must be processed by any component other than the vendor IOMMU driver. For example, when a guest page table was bound to a PASID through the iommu_ops->sva_bind_gpasid() api, the page requests should be routed to the guest, and after the page is served, the device should be responded with the result.

Your review comments are very appreciated.

Best regards,
baolu

Change log:
v2->v3:
- Adress Kevin's review comments

    https://lore.kernel.org/linux-iommu/[email protected]/T/#t
  - Set IOMMU_FAULT_PAGE_RESPONSE_NEEDS_PASID flag
    https://lore.kernel.org/linux-iommu/[email protected]/T/#m0190af2f6cf967217e9def6fa0fed4e0fe5a477e

v1->v2:
- v1 posted at https://lkml.org/lkml/2020/6/27/387
- Remove unnecessary pci_get_domain_bus_and_slot()
- Return error when sdev == NULL in intel_svm_page_response()

Lu Baolu (4):
iommu/vt-d: Refactor device_to_iommu() helper iommu/vt-d: Add a helper to get svm and sdev for pasid iommu/vt-d: Report page request faults for guest SVA iommu/vt-d: Add page response ops support

 drivers/iommu/intel/iommu.c |  56 ++----
 drivers/iommu/intel/svm.c   | 332 ++++++++++++++++++++++++++++--------
 include/linux/intel-iommu.h |   6 +-
 3 files changed, 278 insertions(+), 116 deletions(-)
Signature · 1 line
2.17.1