svn commit: r333230 - head/sys/dev/pci

John Baldwin jhb at freebsd.org
Fri May 4 19:21:06 UTC 2018


On Thursday, May 03, 2018 10:51:44 PM Peter Grehan wrote:
> Author: grehan
> Date: Thu May  3 22:51:44 2018
> New Revision: 333230
> URL: https://svnweb.freebsd.org/changeset/base/333230
> 
> Log:
>   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

I forgout about this earlier, sorry.  We probably should also
explicitly release any resources cached in sc->vga_bios and
sc->vga_bars.  In theory they should be clear by the time
bus_generic_detach finishes, but perhaps we should walk the
resources and whine if they aren't released and then release
them.

-- 
John Baldwin


More information about the svn-src-head mailing list