18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig VFIO_PCI
38c2ecf20Sopenharmony_ci	tristate "VFIO support for PCI devices"
48c2ecf20Sopenharmony_ci	depends on VFIO && PCI && EVENTFD
58c2ecf20Sopenharmony_ci	depends on MMU
68c2ecf20Sopenharmony_ci	select VFIO_VIRQFD
78c2ecf20Sopenharmony_ci	select IRQ_BYPASS_MANAGER
88c2ecf20Sopenharmony_ci	help
98c2ecf20Sopenharmony_ci	  Support for the PCI VFIO bus driver.  This is required to make
108c2ecf20Sopenharmony_ci	  use of PCI drivers using the VFIO framework.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci	  If you don't know what to do here, say N.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciconfig VFIO_PCI_VGA
158c2ecf20Sopenharmony_ci	bool "VFIO PCI support for VGA devices"
168c2ecf20Sopenharmony_ci	depends on VFIO_PCI && X86 && VGA_ARB
178c2ecf20Sopenharmony_ci	help
188c2ecf20Sopenharmony_ci	  Support for VGA extension to VFIO PCI.  This exposes an additional
198c2ecf20Sopenharmony_ci	  region on VGA devices for accessing legacy VGA addresses used by
208c2ecf20Sopenharmony_ci	  BIOS and generic video drivers.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci	  If you don't know what to do here, say N.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciconfig VFIO_PCI_MMAP
258c2ecf20Sopenharmony_ci	depends on VFIO_PCI
268c2ecf20Sopenharmony_ci	def_bool y if !S390
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciconfig VFIO_PCI_INTX
298c2ecf20Sopenharmony_ci	depends on VFIO_PCI
308c2ecf20Sopenharmony_ci	def_bool y if !S390
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciconfig VFIO_PCI_IGD
338c2ecf20Sopenharmony_ci	bool "VFIO PCI extensions for Intel graphics (GVT-d)"
348c2ecf20Sopenharmony_ci	depends on VFIO_PCI && X86
358c2ecf20Sopenharmony_ci	default y
368c2ecf20Sopenharmony_ci	help
378c2ecf20Sopenharmony_ci	  Support for Intel IGD specific extensions to enable direct
388c2ecf20Sopenharmony_ci	  assignment to virtual machines.  This includes exposing an IGD
398c2ecf20Sopenharmony_ci	  specific firmware table and read-only copies of the host bridge
408c2ecf20Sopenharmony_ci	  and LPC bridge config space.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci	  To enable Intel IGD assignment through vfio-pci, say Y.
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciconfig VFIO_PCI_NVLINK2
458c2ecf20Sopenharmony_ci	def_bool y
468c2ecf20Sopenharmony_ci	depends on VFIO_PCI && PPC_POWERNV && SPAPR_TCE_IOMMU
478c2ecf20Sopenharmony_ci	help
488c2ecf20Sopenharmony_ci	  VFIO PCI support for P9 Witherspoon machine with NVIDIA V100 GPUs
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciconfig VFIO_PCI_ZDEV
518c2ecf20Sopenharmony_ci	bool "VFIO PCI ZPCI device CLP support"
528c2ecf20Sopenharmony_ci	depends on VFIO_PCI && S390
538c2ecf20Sopenharmony_ci	default y
548c2ecf20Sopenharmony_ci	help
558c2ecf20Sopenharmony_ci	  Enabling this option exposes VFIO capabilities containing hardware
568c2ecf20Sopenharmony_ci	  configuration for zPCI devices. This enables userspace (e.g. QEMU)
578c2ecf20Sopenharmony_ci	  to supply proper configuration values instead of hard-coded defaults
588c2ecf20Sopenharmony_ci	  for zPCI devices passed through via VFIO on s390.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci	  Say Y here.
61