]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-pci: Add support for VGA region access
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 18 Feb 2013 17:11:13 +0000 (10:11 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 18 Feb 2013 17:11:13 +0000 (10:11 -0700)
commit71f5b710f3320d4a3f1bdf25ff69a085b7a6d0d0
treeab0c6d1d07abd74e90db41521258615fc1eaa211
parent997a5ab57c0936d1154dca63c899f4cfdd094d3d
vfio-pci: Add support for VGA region access

PCI defines display class VGA regions at I/O port address 0x3b0, 0x3c0
and MMIO address 0xa0000.  As these are non-overlapping, we can ignore
the I/O port vs MMIO difference and expose them both in a single
region.  We make use of the VGA arbiter around each access to
configure chipset access as necessary.

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