HomeFreeBSD

bhyve: Move legacy PCI interrupt handling under amd64/

Description

bhyve: Move legacy PCI interrupt handling under amd64/

Specifically, move IO-APIC, LPC and PIRQ routing code under amd64/.

Use ifdefs to conditionally compile related code in other files. In
particular, legacy PCI interrupt handling is now compiled only on amd64.
This is not too invasive, but suggestions for a more modular approach
would be appreciated.

I am not sure why qemu fwcfg handling is tied to LPC, and I suspect it
should be decoupled. In this commit I just apply an ifdef hammer, but
we will eventually want fwcfg on arm64 as well.

No functional change intended.

Reviewed by: corvink, jhb
MFC after: 1 week
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D40739

Details

Provenance
markjAuthored on Oct 4 2023, 4:25 PM
Reviewer
corvink
Differential Revision
D40739: bhyve: Move legacy PCI interrupt handling under amd64/
Parents
rG71cc76e8d78e: bhyve: Compile some device models only on amd64
Branches
Unknown
Tags
Unknown