Skip to content

Commit

Permalink
vfio: platform: add the VFIO PLATFORM module to Kconfig
Browse files Browse the repository at this point in the history
Enable building the VFIO PLATFORM driver that allows to use Linux platform
devices with VFIO.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information
Antonios Motakis authored and Alex Williamson committed Mar 16, 2015
1 parent 9df85aa commit 5316153
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/vfio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ menuconfig VFIO
If you don't know what to do here, say N.

source "drivers/vfio/pci/Kconfig"
source "drivers/vfio/platform/Kconfig"
1 change: 1 addition & 0 deletions drivers/vfio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o
obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o
obj-$(CONFIG_VFIO_SPAPR_EEH) += vfio_spapr_eeh.o
obj-$(CONFIG_VFIO_PCI) += pci/
obj-$(CONFIG_VFIO_PLATFORM) += platform/
9 changes: 9 additions & 0 deletions drivers/vfio/platform/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
config VFIO_PLATFORM
tristate "VFIO support for platform devices"
depends on VFIO && EVENTFD && ARM
help
Support for platform devices with VFIO. This is required to make
use of platform devices present on the system using the VFIO
framework.

If you don't know what to do here, say N.
4 changes: 4 additions & 0 deletions drivers/vfio/platform/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

vfio-platform-y := vfio_platform.o vfio_platform_common.o

obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform.o

0 comments on commit 5316153

Please sign in to comment.