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
F141897852: D54647.id169467.diff
Mon, Jan 12, 4:47 AM
F141890334: D54647.id.diff
Mon, Jan 12, 1:48 AM
F141880903: D54647.diff
Sun, Jan 11, 10:34 PM
F141873293: D54647.diff
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