GPUs often have VGA PCI device IDs and are probed/attached
by the VGA driver. Allow them to be detached so they can
be presented as passthru devices to VM guests.
Details
Details
- Reviewers
jhb imp rgrimes - Group Reviewers
bhyve - Commits
- rS333230: Allow PCI VGA devices to be detached.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 16399 Build 16324: arc lint + arc unit
Event Timeline
sys/dev/pci/vga_pci.c | ||
---|---|---|
290 | Cosmetic nits. Existing style in this file is to use 'error' instead of 'rc' and to not do assignments inside of conditionals, so: int error; error = bus_generic_detach(dev); if (error == 0) errror = device_delete_children(dev); return (error); |