enfiskutensykkel / ssd-gpu-dma

Build userspace NVMe drivers and storage applications with CUDA support
BSD 2-Clause "Simplified" License
342 stars 47 forks source link

Identify Example: Support VFIO interface for devices behind IOMMU #23

Closed cooldavid closed 5 years ago

cooldavid commented 5 years ago

Devices behind IOMMU would get DMA page fault error without proper IOMMU setting. Make the identify example support setting VFIO group for those devices.

Reference document: https://www.kernel.org/doc/Documentation/vfio.txt

Usage example:

enfiskutensykkel commented 5 years ago

Thank you for this contribution.