Re: [RFC PATCH v1 3/4] vfio: Try to enable IOPF for VFIO devices

2021-01-30 Thread Shenming Lu
On 2021/1/30 6:42, Alex Williamson wrote: > On Mon, 25 Jan 2021 17:04:01 +0800 > Shenming Lu wrote: > >> If IOMMU_DEV_FEAT_IOPF is set for the VFIO device, which means that >> the delivering of page faults of this device from the IOMMU is enabled, >> we register the VFIO page fault handler to com

Re: [RFC PATCH v1 3/4] vfio: Try to enable IOPF for VFIO devices

2021-01-29 Thread Alex Williamson
On Mon, 25 Jan 2021 17:04:01 +0800 Shenming Lu wrote: > If IOMMU_DEV_FEAT_IOPF is set for the VFIO device, which means that > the delivering of page faults of this device from the IOMMU is enabled, > we register the VFIO page fault handler to complete the whole faulting > path (HW+SW). And add a

[RFC PATCH v1 3/4] vfio: Try to enable IOPF for VFIO devices

2021-01-25 Thread Shenming Lu
If IOMMU_DEV_FEAT_IOPF is set for the VFIO device, which means that the delivering of page faults of this device from the IOMMU is enabled, we register the VFIO page fault handler to complete the whole faulting path (HW+SW). And add a iopf_enabled field in struct vfio_device to record it. Signed-o