| 1 |
# SPDX-License-Identifier: GPL-2.0-only |
| 2 |
menu "VFIO support for PCI devices" |
| 3 |
depends on PCI |
| 4 |
|
| 5 |
config VFIO_PCI_CORE |
| 6 |
tristate |
| 7 |
select VFIO_VIRQFD |
| 8 |
select IRQ_BYPASS_MANAGER |
| 9 |
|
| 10 |
config VFIO_PCI_INTX |
| 11 |
def_bool y if !S390 |
| 12 |
depends on VFIO_PCI_CORE |
| 13 |
|
| 14 |
config VFIO_PCI |
| 15 |
tristate "Generic VFIO support for any PCI device" |
| 16 |
select VFIO_PCI_CORE |
| 17 |
help |
| 18 |
Support for the generic PCI VFIO bus driver which can connect any |
| 19 |
PCI device to the VFIO framework. |
| 20 |
|
| 21 |
If you don't know what to do here, say N. |
| 22 |
|
| 23 |
if VFIO_PCI |
| 24 |
config VFIO_PCI_VGA |
| 25 |
bool "Generic VFIO PCI support for VGA devices" |
| 26 |
depends on X86 && VGA_ARB |
| 27 |
help |
| 28 |
Support for VGA extension to VFIO PCI. This exposes an additional |
| 29 |
region on VGA devices for accessing legacy VGA addresses used by |
| 30 |
BIOS and generic video drivers. |
| 31 |
|
| 32 |
If you don't know what to do here, say N. |
| 33 |
|
| 34 |
config VFIO_PCI_IGD |
| 35 |
bool "Generic VFIO PCI extensions for Intel graphics (GVT-d)" |
| 36 |
depends on X86 |
| 37 |
default y |
| 38 |
help |
| 39 |
Support for Intel IGD specific extensions to enable direct |
| 40 |
assignment to virtual machines. This includes exposing an IGD |
| 41 |
specific firmware table and read-only copies of the host bridge |
| 42 |
and LPC bridge config space. |
| 43 |
|
| 44 |
To enable Intel IGD assignment through vfio-pci, say Y. |
| 45 |
endif |
| 46 |
|
| 47 |
config VFIO_PCI_ZDEV_KVM |
| 48 |
bool "VFIO PCI extensions for s390x KVM passthrough" |
| 49 |
depends on S390 && KVM |
| 50 |
default y |
| 51 |
help |
| 52 |
Support s390x-specific extensions to enable support for enhancements |
| 53 |
to KVM passthrough capabilities, such as interpretive execution of |
| 54 |
zPCI instructions. |
| 55 |
|
| 56 |
To enable s390x KVM vfio-pci extensions, say Y. |
| 57 |
|
| 58 |
config VFIO_PCI_DMABUF |
| 59 |
def_bool y if VFIO_PCI_CORE && PCI_P2PDMA && DMA_SHARED_BUFFER |
| 60 |
|
| 61 |
source "drivers/vfio/pci/mlx5/Kconfig" |
| 62 |
|
| 63 |
source "drivers/vfio/pci/hisilicon/Kconfig" |
| 64 |
|
| 65 |
source "drivers/vfio/pci/pds/Kconfig" |
| 66 |
|
| 67 |
source "drivers/vfio/pci/virtio/Kconfig" |
| 68 |
|
| 69 |
source "drivers/vfio/pci/nvgrace-gpu/Kconfig" |
| 70 |
|
| 71 |
source "drivers/vfio/pci/qat/Kconfig" |
| 72 |
|
| 73 |
source "drivers/vfio/pci/xe/Kconfig" |
| 74 |
|
| 75 |
endmenu |