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
F160264839: D54644.diff
Mon, Jun 22, 5:21 PM
Unknown Object (File)
Mon, Jun 15, 9:24 PM
Unknown Object (File)
Thu, Jun 11, 8:56 PM
Unknown Object (File)
Thu, Jun 11, 6:01 AM
Unknown Object (File)
Sat, Jun 6, 9:29 AM
Unknown Object (File)
Sat, May 30, 8:22 AM
Unknown Object (File)
Thu, May 28, 4:24 PM
Unknown Object (File)
May 15 2026, 6:25 AM

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