]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vfio-pci: Add VGA arbiter client
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 7 Apr 2015 17:14:41 +0000 (11:14 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 7 Apr 2015 17:14:41 +0000 (11:14 -0600)
commitecaa1f6a01544604de5f9531379a303eee886162
tree8d83dec6854b9b3246fab77601c448a5176d572d
parent88c0dead9fb2cc66962b64064770558eecf3eafd
vfio-pci: Add VGA arbiter client

If VFIO VGA access is disabled for the user, either by CONFIG option
or module parameter, we can often opt-out of VGA arbitration.  We can
do this when PCI bridge control of VGA routing is possible.  This
means that we must have a parent bridge and there must only be a
single VGA device below that bridge.  Fortunately this is the typical
case for discrete GPUs.

Doing this allows us to minimize the impact of additional GPUs, in
terms of VGA arbitration, when they are only used via vfio-pci for
non-VGA applications.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c