Allow PCI VGA devices to be detached.
authorPeter Grehan <grehan@FreeBSD.org>
Thu, 3 May 2018 22:51:44 +0000 (22:51 +0000)
committerPeter Grehan <grehan@FreeBSD.org>
Thu, 3 May 2018 22:51:44 +0000 (22:51 +0000)
commit598b1345d9d0b40b9e2f015afcef6510e270b7a9
tree147ee75191914435d24c9227c37c48ea5584b52d
parentd5effb01f175851fb2bfda0f6b018ce3b82fba4b
Allow PCI VGA devices to be detached.

GPUs often have a VGA PCI class code and are probed/attached
by the VGA driver. Allow them to be detached so they can
be presented as passthru devices to VM guests.

Submitted by: mmacy
Reviewed by: jhb, imp, rgrimes
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D15269
sys/dev/pci/vga_pci.c