Re: [RFC PATCH v1 2/4] vfio: Add a page fault handler

2021-01-27 Thread Shenming Lu
On 2021/1/28 1:42, Christoph Hellwig wrote: > On Mon, Jan 25, 2021 at 05:04:00PM +0800, Shenming Lu wrote: >> +EXPORT_SYMBOL_GPL(vfio_iommu_dev_fault_handler); > > This function is only used in vfio.c itself, so it should not be > exported, but rather marked static. > . > Yeah, it makes sense. T

Re: [RFC PATCH v1 2/4] vfio: Add a page fault handler

2021-01-27 Thread Christoph Hellwig
On Mon, Jan 25, 2021 at 05:04:00PM +0800, Shenming Lu wrote: > +EXPORT_SYMBOL_GPL(vfio_iommu_dev_fault_handler); This function is only used in vfio.c itself, so it should not be exported, but rather marked static.

[RFC PATCH v1 2/4] vfio: Add a page fault handler

2021-01-25 Thread Shenming Lu
VFIO manages the passthrough DMA mapping itself. In order to support IOPF for VFIO devices, we need to add a VFIO page fault handler to serve the reported page faults from the IOMMU driver. Signed-off-by: Shenming Lu --- drivers/vfio/vfio.c | 35 drivers/vfio/vfi