Page MenuHomeFreeBSD

Allow PCI VGA devices to be detached.
ClosedPublic

Authored by grehan on May 2 2018, 5:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 30 2024, 12:18 AM
Unknown Object (File)
Sep 27 2024, 8:56 AM
Unknown Object (File)
Sep 27 2024, 5:33 AM
Unknown Object (File)
Sep 26 2024, 7:56 AM
Unknown Object (File)
Sep 23 2024, 11:33 PM
Unknown Object (File)
Sep 23 2024, 7:26 PM
Unknown Object (File)
Sep 23 2024, 7:08 PM
Unknown Object (File)
Sep 22 2024, 7:18 PM
Subscribers

Details

Summary

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.

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

jhb added inline comments.
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);
This revision is now accepted and ready to land.May 2 2018, 5:25 PM

How do you trigger a call to this DEVMETHOD?

How do you trigger a call to this DEVMETHOD?

  1. devctl detatch vga0
This revision now requires review to proceed.May 2 2018, 5:47 PM
This revision is now accepted and ready to land.May 2 2018, 5:51 PM
This revision was automatically updated to reflect the committed changes.