]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfio: Add PCI device driver
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 24 Jul 2012 18:50:45 +0000 (12:50 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 24 Jul 2012 18:50:45 +0000 (12:50 -0600)
commited9e8e9efa7478ffe3ad344ce2a12830af38cb7c
tree64bfca65199e3d2d2b8a31f7ccc4aaeae4740b29
parent010ec04d38ff73ded652cadbdf65650418bb5b99
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