Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1248230
| From | Stephen Hemminger <stephen@networkplumber.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v2] vfio: Include No-IOMMU mode |
| Date | 2015-10-16 00:50 +0200 |
| Message-ID | <qjZvs-3Lg-9@gated-at.bofh.it> (permalink) |
| References | <qjCfw-2ZW-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 14 Oct 2015 15:51:18 -0600 Alex Williamson <alex.williamson@redhat.com> wrote: > There is really no way to safely give a user full access to a DMA > capable device without an IOMMU to protect the host system. There is > also no way to provide DMA translation, for use cases such as device > assignment to virtual machines. However, there are still those users > that want userspace drivers even under those conditions. The UIO > driver exists for this use case, but does not provide the degree of > device access and programming that VFIO has. In an effort to avoid > code duplication, this introduces a No-IOMMU mode for VFIO. > > This mode requires building VFIO with CONFIG_VFIO_NOIOMMU and enabling > the "enable_unsafe_noiommu_mode" option on the vfio driver. This > should make it very clear that this mode is not safe. Additionally, > CAP_SYS_RAWIO privileges are necessary to work with groups and > containers using this mode. Groups making use of this support are > named /dev/vfio/noiommu-$GROUP and can only make use of the special > VFIO_NOIOMMU_IOMMU for the container. Use of this mode, specifically > binding a device without a native IOMMU group to a VFIO bus driver > will taint the kernel and should therefore not be considered > supported. This patch includes no-iommu support for the vfio-pci bus > driver only. > > Signed-off-by: Alex Williamson <alex.williamson@redhat.com> The concept looks good. I am trying it now to see how well this works for the use case of DPDK in a VM. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH v2] vfio: Include No-IOMMU mode Alex Williamson <alex.williamson@redhat.com> - 2015-10-15 00:00 +0200 Re: [RFC PATCH v2] vfio: Include No-IOMMU mode "Michael S. Tsirkin" <mst@redhat.com> - 2015-10-15 18:50 +0200 Re: [RFC PATCH v2] vfio: Include No-IOMMU mode Stephen Hemminger <stephen@networkplumber.org> - 2015-10-16 00:50 +0200
csiph-web