Page MenuHomeFreeBSD

bhyve/pci_emul.c: Setup fixed PCI irq mappings for hotpluggable slots
Needs ReviewPublic

Authored by bnovkov on Jan 11 2026, 1:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 8, 6:08 PM
Unknown Object (File)
Sat, Aug 8, 2:30 PM
Unknown Object (File)
Fri, Aug 7, 6:09 PM
Unknown Object (File)
Sun, Aug 2, 8:46 PM
Unknown Object (File)
Sun, Aug 2, 1:55 AM
Unknown Object (File)
Sat, Aug 1, 12:31 AM
Unknown Object (File)
Fri, Jul 31, 6:20 PM
Unknown Object (File)
Fri, Jul 31, 3:07 PM

Details

Reviewers
markj
Group Reviewers
bhyve
Summary

Tweak init_pci to set up irq mappings for all pins in a given
hotpluggable slot.
This makes it possible to emit ACPI interrupt routing entries (PRT)
for hotpluggable slots, which is a prerequisite for ACPI-based
device hotplugging.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

markj added a subscriber: markj.
markj added inline comments.
usr.sbin/bhyve/pci_emul.c
1675

These can be declared in the loop, for (int pin = 0; pin < 4; ...) { struct intxinfo *ii; ... }

1687

Indentation is wrong here.

This revision is now accepted and ready to land.Feb 3 2026, 4:48 PM
bnovkov marked 2 inline comments as done.

Address @markj 's comments.

This revision now requires review to proceed.Feb 5 2026, 6:02 PM