Page MenuHomeFreeBSD

bhyve: Refactor pci_irq_route
AcceptedPublic

Authored by bnovkov on Jan 11 2026, 1:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 24, 8:03 PM
Unknown Object (File)
Sun, Aug 23, 2:57 AM
Unknown Object (File)
Tue, Aug 18, 5:23 PM
Unknown Object (File)
Tue, Aug 18, 2:58 PM
Unknown Object (File)
Sat, Aug 15, 4:30 PM
Unknown Object (File)
Sat, Aug 15, 2:53 PM
Unknown Object (File)
Fri, Aug 14, 4:01 PM
Unknown Object (File)
Thu, Aug 13, 11:57 AM

Details

Reviewers
andrew
markj
Group Reviewers
bhyve
Summary

Change pci_irq_route's arguments to a slot number and a pin number
instead of a pointer to an emulated PCI device instance.
This allows us to set up fixed IRQ mappings for slots without device
instances, which is a prerequisite for device hotplugging.
No functional change intended.

Diff Detail

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

Event Timeline

Looks ok aside from the comments.

usr.sbin/bhyve/pci_emul.c
2156

What's the purpose of this change?

usr.sbin/bhyve/pci_irq.c
17

Extra newline

bnovkov marked 2 inline comments as done.

Address @markj 's comments.

usr.sbin/bhyve/pci_emul.c
2156

Ah, that was a leftover change from a previous version of this patch, removed.

This revision is now accepted and ready to land.Feb 6 2026, 3:41 PM