vfio: Add PCI device driver
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 31 Jul 2012 14:16:24 +0000 (08:16 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 31 Jul 2012 14:16:24 +0000 (08:16 -0600)
commit89e1f7d4c66d85f42c3d52ea3866eb10cadf6153
tree6bea54ae5eaea48c17d309855d36d801259b64d1
parent73fa0d10d077d9521ee2dace2307ae2c9a965336
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>
drivers/vfio/Kconfig
drivers/vfio/pci/Kconfig [new file with mode: 0644]
drivers/vfio/pci/Makefile [new file with mode: 0644]
drivers/vfio/pci/vfio_pci.c [new file with mode: 0644]
drivers/vfio/pci/vfio_pci_config.c [new file with mode: 0644]
drivers/vfio/pci/vfio_pci_intrs.c [new file with mode: 0644]
drivers/vfio/pci/vfio_pci_private.h [new file with mode: 0644]
drivers/vfio/pci/vfio_pci_rdwr.c [new file with mode: 0644]
include/linux/vfio.h