[PATCH 01/37] iommu: Introduce Shared Virtual Addressing API

From
Joerg Roedel <joro@8bytes.org>
Date
2018-02-15 09:59:09
Also in
kvm, linux-acpi, linux-devicetree, linux-iommu, linux-pci
Reply to
Jean-Philippe Brucker, 2018-02-12
On Mon, Feb 12, 2018 at 06:33:16PM +0000, Jean-Philippe Brucker wrote:
  
quoted hunk ↗ jump to hunk
+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.
quoted hunk ↗ jump to hunk
+/**
+ * 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.
Thread (24 messages) 24 messages, 5 authors, last reply 2018-02-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help