]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
vfio/pci: Intel IGD host and LCP bridge config space access
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Feb 2016 23:02:45 +0000 (16:02 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Feb 2016 23:10:09 +0000 (16:10 -0700)
commitf572a960a15e8bb56599f6d2358a9c18f0808e91
tree7010cab19cd6604f8d17d3dbb27611635e1870c9
parent5846ff54e87d8bab4f1e330af0b5407747a0a57e
vfio/pci: Intel IGD host and LCP bridge config space access

Provide read-only access to PCI config space of the PCI host bridge
and LPC bridge through device specific regions.  This may be used to
configure a VM with matching register contents to satisfy driver
requirements.  Providing this through the vfio file descriptor removes
an additional userspace requirement for access through pci-sysfs and
removes the CAP_SYS_ADMIN requirement that doesn't appear to apply to
the specific devices we're accessing.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c
drivers/vfio/pci/vfio_pci_igd.c
drivers/vfio/pci/vfio_pci_private.h
include/uapi/linux/vfio.h