diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-05-09 20:47:58 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-05-10 19:41:24 (GMT) |
commit | d109d303d7ee036bacb7f9d0d1559b3bbd31c601 (patch) | |
tree | 81022174b9fba7a2413de507cca54b55a77acb0e /drivers/iommu | |
parent | 0f480b86856e5840bab9b96b36346ca0a145404c (diff) | |
download | linux-fsl-qoriq-d109d303d7ee036bacb7f9d0d1559b3bbd31c601.tar.xz |
Subject: [PATCH v5] Support for dummy vfio iommu driver.
This is primarily required for supporting vfio direct device assignment on platforms
that don't have a hardware IOMMU.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: Id3e968a7c4110fe392354b053112e2dc083adebd
Reviewed-on: http://git.am.freescale.net:8181/2401
Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com>
Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com>
Reviewed-by: Bhushan Bharat-R65777 <Bharat.Bhushan@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index f712da2..73c0716 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -25,6 +25,18 @@ config FSL_PAMU help Freescale PAMU support. +config DUMMY_IOMMU + bool "Dummy IOMMU support for VFIO (UNSAFE)" + select IOMMU_API + help + WARNING: Dummy IOMMU driver, only for platforms that don't have a + hardware IOMMU. This option does allow you to use VFIO device + assignment, but does not provide DMA memory isolation. + Only use this if you trust all VFIO users completely. + The dummy vfio iommu driver can be enabled via + /sys/kernel/vfio_iommu_dummy/enable_iommu_dummy attribute. + If unsure, say N. + # MSM IOMMU support config MSM_IOMMU bool "MSM IOMMU Support" |