xref: /openbmc/linux/drivers/vfio/pci/Kconfig (revision fc9da661)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
28cc75183SAlex Williamsonmenu "VFIO support for PCI devices"
38cc75183SAlex Williamson	depends on PCI && MMU
48cc75183SAlex Williamson
57fa005caSMax Gurtovoyconfig VFIO_PCI_CORE
67fa005caSMax Gurtovoy	tristate
771be3423SAlex Williamson	select VFIO_VIRQFD
86d7425f1SFeng Wu	select IRQ_BYPASS_MANAGER
97fa005caSMax Gurtovoy
107fa005caSMax Gurtovoyconfig VFIO_PCI_MMAP
117fa005caSMax Gurtovoy	def_bool y if !S390
128cc75183SAlex Williamson	depends on VFIO_PCI_CORE
137fa005caSMax Gurtovoy
147fa005caSMax Gurtovoyconfig VFIO_PCI_INTX
157fa005caSMax Gurtovoy	def_bool y if !S390
168cc75183SAlex Williamson	depends on VFIO_PCI_CORE
177fa005caSMax Gurtovoy
187fa005caSMax Gurtovoyconfig VFIO_PCI
197fa005caSMax Gurtovoy	tristate "Generic VFIO support for any PCI device"
207fa005caSMax Gurtovoy	select VFIO_PCI_CORE
2189e1f7d4SAlex Williamson	help
227fa005caSMax Gurtovoy	  Support for the generic PCI VFIO bus driver which can connect any
237fa005caSMax Gurtovoy	  PCI device to the VFIO framework.
2489e1f7d4SAlex Williamson
2589e1f7d4SAlex Williamson	  If you don't know what to do here, say N.
2684237a82SAlex Williamson
2785c94dcfSJason Gunthorpeif VFIO_PCI
2884237a82SAlex Williamsonconfig VFIO_PCI_VGA
297fa005caSMax Gurtovoy	bool "Generic VFIO PCI support for VGA devices"
3085c94dcfSJason Gunthorpe	depends on X86 && VGA_ARB
3184237a82SAlex Williamson	help
3284237a82SAlex Williamson	  Support for VGA extension to VFIO PCI.  This exposes an additional
3384237a82SAlex Williamson	  region on VGA devices for accessing legacy VGA addresses used by
3484237a82SAlex Williamson	  BIOS and generic video drivers.
3584237a82SAlex Williamson
3684237a82SAlex Williamson	  If you don't know what to do here, say N.
371d53a3a7SFrank Blaschka
385846ff54SAlex Williamsonconfig VFIO_PCI_IGD
397fa005caSMax Gurtovoy	bool "Generic VFIO PCI extensions for Intel graphics (GVT-d)"
4085c94dcfSJason Gunthorpe	depends on X86
4108ca1b52SAlex Williamson	default y
4208ca1b52SAlex Williamson	help
4308ca1b52SAlex Williamson	  Support for Intel IGD specific extensions to enable direct
4408ca1b52SAlex Williamson	  assignment to virtual machines.  This includes exposing an IGD
4508ca1b52SAlex Williamson	  specific firmware table and read-only copies of the host bridge
4608ca1b52SAlex Williamson	  and LPC bridge config space.
4708ca1b52SAlex Williamson
4808ca1b52SAlex Williamson	  To enable Intel IGD assignment through vfio-pci, say Y.
497fa005caSMax Gurtovoyendif
506fadb021SYishai Hadas
51c435c546SMatthew Rosatoconfig VFIO_PCI_ZDEV_KVM
52c435c546SMatthew Rosato	bool "VFIO PCI extensions for s390x KVM passthrough"
53c435c546SMatthew Rosato	depends on S390 && KVM
54c435c546SMatthew Rosato	default y
55c435c546SMatthew Rosato	help
56c435c546SMatthew Rosato	  Support s390x-specific extensions to enable support for enhancements
57c435c546SMatthew Rosato	  to KVM passthrough capabilities, such as interpretive execution of
58c435c546SMatthew Rosato	  zPCI instructions.
59c435c546SMatthew Rosato
60c435c546SMatthew Rosato	  To enable s390x KVM vfio-pci extensions, say Y.
61c435c546SMatthew Rosato
626fadb021SYishai Hadassource "drivers/vfio/pci/mlx5/Kconfig"
636fadb021SYishai Hadas
64ee3a5b23SShameer Kolothumsource "drivers/vfio/pci/hisilicon/Kconfig"
65ee3a5b23SShameer Kolothum
66*fc9da661SBrett Creeleysource "drivers/vfio/pci/pds/Kconfig"
67*fc9da661SBrett Creeley
688cc75183SAlex Williamsonendmenu
69