On Wed, 31 May 2023 18:15:57 +0530 Nipun Gupta <nipun.gupta@xxxxxxx> wrote: > vfio-cdx driver enables IOCTLs for user space to query > MMIO regions for CDX devices and mmap them. This change > also adds support for reset of CDX devices. With VFIO > enabled on CDX devices, user-space applications can also > exercise DMA securely via IOMMU on these devices. > > This change adds the VFIO CDX driver and enables the following > ioctls for CDX devices: > - VFIO_DEVICE_GET_INFO: > - VFIO_DEVICE_GET_REGION_INFO > - VFIO_DEVICE_RESET > > Signed-off-by: Nipun Gupta <nipun.gupta@xxxxxxx> > Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@xxxxxxx> > Tested-by: Nikhil Agarwal <nikhil.agarwal@xxxxxxx> > --- > > Changed to support driver managed dma in CDX bus has been > submitted at: > https://lore.kernel.org/lkml/20230117134139.1298-1-nipun.gupta@xxxxxxx/T/ > > Changes v6->v7: > - updated GFP_KERNEL to GFP_KERNEL_ACCOUNT in kcalloc > - remove redundant error condition > - updated return codes Applied to vfio next branch for v6.5. Thanks, Alex