Skip to content

Commit

Permalink
vfio: Add PCI device driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
awilliam committed Jul 31, 2012
1 parent 73fa0d1 commit 89e1f7d
Show file tree
Hide file tree
Showing 9 changed files with 3,259 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/vfio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ menuconfig VFIO
See Documentation/vfio.txt for more details.

If you don't know what to do here, say N.

source "drivers/vfio/pci/Kconfig"
8 changes: 8 additions & 0 deletions drivers/vfio/pci/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
config VFIO_PCI
tristate "VFIO support for PCI devices"
depends on VFIO && PCI && EVENTFD
help
Support for the PCI VFIO bus driver. This is required to make
use of PCI drivers using the VFIO framework.

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

vfio-pci-y := vfio_pci.o vfio_pci_intrs.o vfio_pci_rdwr.o vfio_pci_config.o

obj-$(CONFIG_VFIO_PCI) += vfio-pci.o
Loading

0 comments on commit 89e1f7d

Please sign in to comment.