Page MenuHomeFreeBSD

bhyve/pci_emul.c: Introduce device teardown routines
Needs ReviewPublic

Authored by bnovkov on Sun, Jan 11, 1:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 14, 10:28 PM
Unknown Object (File)
Mon, Jan 12, 4:47 AM
Unknown Object (File)
Mon, Jan 12, 1:48 AM
Unknown Object (File)
Sun, Jan 11, 10:34 PM
Unknown Object (File)
Sun, Jan 11, 7:38 PM
Subscribers

Details

Reviewers
None
Group Reviewers
bhyve
Summary

This change introduces a teardown method to struct pci_devemu
(pe_teardown) along with the high-level pci_emul_teardown routine.
pe_teardown is responsible releasing any resources allocated in
pe_init, while pci_emul_teardown unregisters and releases all
device BARs into the appropriate vmem_t arena.

This is a prerequisite for PCI device hotplugging since it allows
us to release a device's resources upon ejecting it.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69796
Build 66679: arc lint + arc unit