Page MenuHomeFreeBSD

bhyve: Refactor pci_irq_route
AcceptedPublic

Authored by bnovkov on Jan 11 2026, 1:32 PM.
Tags
None
Referenced Files
F156981513: D54643.id169463.diff
Sun, May 17, 7:04 PM
Unknown Object (File)
Wed, May 13, 8:29 PM
Unknown Object (File)
Wed, May 13, 7:46 PM
Unknown Object (File)
Wed, May 13, 7:46 PM
Unknown Object (File)
Wed, May 13, 7:28 PM
Unknown Object (File)
Tue, May 12, 11:48 PM
Unknown Object (File)
Mon, May 11, 5:43 AM
Unknown Object (File)
Mon, May 11, 5:14 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