Linux IOMMU page tables

前端 未结 2 884
面向向阳花
面向向阳花 2021-02-10 11:35

I\'ve been reading about IOMMU support in Linux and have some questions regarding page tables in IOMMU:

  1. Does the IOMMU uses the CPU MMU page tables for storing the
2条回答
  •  太阳男子
    2021-02-10 12:28

    While osgx's answer is true with the historical use of IOMMUs in the kernel, shared virtual memory use cases, specially with PCIe PASID will require sharing or shadowing IOMMU and CPU page tables, such that a pointer/VA (say to a pinned buffer) can be passed directly from user space driver to the device without any dma_map related kernel services.

    Of course this will require new APIs for user space to be able to request SVM/shared page tables.

    See SVM on Intel Graphics

提交回复
热议问题