> From: Jason Gunthorpe <jgg@xxxxxxxxxx> > Sent: Wednesday, January 11, 2023 4:07 AM > > Add a small amount of emulation to vfio_compat to accept the SET_IOMMU > to > VFIO_NOIOMMU_IOMMU and have vfio just ignore iommufd if it is working > on a > no-iommu enabled device. > > Move the enable_unsafe_noiommu_mode module out of container.c into > vfio_main.c so that it is always available even if VFIO_CONTAINER=n. > > This passes Alex's mini-test: > > https://github.com/awilliam/tests/blob/master/vfio-noiommu-pci-device- > open.c > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>