forked from jonsmirl/mpc5200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
vfio: Add PCI device support
This adds VFIO backing for PCI device to be added and removed from the VFIO framework and securely accessed from userspace. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
- Loading branch information
Showing
10 changed files
with
2,591 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| vfio-y := vfio_main.o vfio_iommu.o | ||
|
|
||
| obj-$(CONFIG_VFIO) := vfio.o | ||
| obj-$(CONFIG_VFIO_PCI) += pci/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.