Skip to content

Commit 89e1f7d

Browse files
author
Alex Williamson
committed
vfio: Add PCI device driver
Add PCI device support for VFIO. PCI devices expose regions for accessing config space, I/O port space, and MMIO areas of the device. PCI config access is virtualized in the kernel, allowing us to ensure the integrity of the system, by preventing various accesses while reducing duplicate support across various userspace drivers. I/O port supports read/write access while MMIO also supports mmap of sufficiently sized regions. Support for INTx, MSI, and MSI-X interrupts are provided using eventfds to userspace. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 73fa0d1 commit 89e1f7d

File tree

9 files changed

+3259
-0
lines changed

9 files changed

+3259
-0
lines changed

drivers/vfio/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ menuconfig VFIO
1212
See Documentation/vfio.txt for more details.
1313

1414
If you don't know what to do here, say N.
15+
16+
source "drivers/vfio/pci/Kconfig"

drivers/vfio/pci/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
config VFIO_PCI
2+
tristate "VFIO support for PCI devices"
3+
depends on VFIO && PCI && EVENTFD
4+
help
5+
Support for the PCI VFIO bus driver. This is required to make
6+
use of PCI drivers using the VFIO framework.
7+
8+
If you don't know what to do here, say N.

drivers/vfio/pci/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
vfio-pci-y := vfio_pci.o vfio_pci_intrs.o vfio_pci_rdwr.o vfio_pci_config.o
3+
4+
obj-$(CONFIG_VFIO_PCI) += vfio-pci.o

0 commit comments

Comments
 (0)