Page MenuHomeFreeBSD

bhyve/pci_emul.c: Introduce notion of fixed and hotpluggable slots
AcceptedPublic

Authored by bnovkov on Jan 11 2026, 1:32 PM.
Tags
None
Referenced Files
F145952397: D54642.diff
Thu, Feb 26, 11:49 AM
F145952382: D54642.diff
Thu, Feb 26, 11:49 AM
Unknown Object (File)
Sat, Feb 21, 1:47 PM
Unknown Object (File)
Wed, Feb 18, 2:46 PM
Unknown Object (File)
Sat, Feb 14, 10:32 PM
Unknown Object (File)
Tue, Feb 10, 4:17 PM
Unknown Object (File)
Tue, Feb 3, 4:23 PM
Unknown Object (File)
Tue, Feb 3, 4:22 PM
Subscribers

Details

Reviewers
markj
Group Reviewers
bhyve
Summary

A virtual PCI slot is considered empty if no devices were attached to
it using the -s commandline flag. Such slots are eligible for runtime
emulated device hotplugging. Conversely, virtual slots with preconfigured
devices are treated as 'fixed' and are left alone for the remainder
of the virtual machine's lifecycle.

This is a prerequisite for emulated PCI device hotplugging as it
allows us to choose appropriate virtual PCI slots when hotplugging
an emulated PCI device.

Diff Detail

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