[PATCH 01/37] iommu: Introduce Shared Virtual Addressing API
joro at 8bytes.org
Thu Feb 15 01:59:09 PST 2018
On Mon, Feb 12, 2018 at 06:33:16PM +0000, Jean-Philippe Brucker wrote:
> +config IOMMU_SVA
> + bool "Shared Virtual Addressing API for the IOMMU"
> + select IOMMU_API
> + help
> + Enable process address space management for the IOMMU API. In systems
> + that support it, device drivers can bind process address spaces to
> + devices and share their page tables using this API.
> + If unsure, say N here.
I think this should be an option selected by IOMMU driver and not be
activly selectable by the user.
> + * iommu_sva_device_shutdown() - Shutdown Shared Virtual Addressing for a device
> + * @dev: the device
> + *
> + * Disable SVA. The device should not be performing any DMA while this function
> + * is running.
Is this a good idea? How about devices that get hot-unplugged while
processes still use them and there is DMA going back and forth? This
function can be the point to shut down all ongoing stuff first and the
shutdown the device.
More information about the linux-arm-kernel