]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Support legacy PCI interrupts on arm64
authorJessica Clarke <jrtc27@jrtc27.com>
Sat, 17 Feb 2024 01:44:51 +0000 (01:44 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 10 Apr 2024 15:17:56 +0000 (11:17 -0400)
commit0efad4aceb533ef32905de586ab0112b1c563996
treec20c55d1c03fed91339f934f6bf58159b94b5763
parent54416d2d786ae364b918c9c5af2d8f1d1bb0a1c1
bhyve: Support legacy PCI interrupts on arm64

This allows us to remove various #ifdef hacks and enable building more
PCI devices.

Note that a hole is left in the interrupt mapping for the RTC rather
than having the two core devices straddle the PCIe interrupts. QEMU's
virt machine also takes this approach.

Reviewed by: jhb
MFC after: 2 weeks
Obtained from: CheriBSD
15 files changed:
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/aarch64/bhyverun_machdep.c
usr.sbin/bhyve/aarch64/fdt.c
usr.sbin/bhyve/aarch64/fdt.h
usr.sbin/bhyve/aarch64/pci_irq.c [new file with mode: 0644]
usr.sbin/bhyve/aarch64/pci_irq_machdep.h [new file with mode: 0644]
usr.sbin/bhyve/amd64/Makefile.inc
usr.sbin/bhyve/amd64/mptbl.c
usr.sbin/bhyve/amd64/pci_irq.c
usr.sbin/bhyve/amd64/pci_irq_machdep.h [new file with mode: 0644]
usr.sbin/bhyve/pci_emul.c
usr.sbin/bhyve/pci_emul.h
usr.sbin/bhyve/pci_irq.h [moved from usr.sbin/bhyve/amd64/pci_irq.h with 86% similarity]
usr.sbin/bhyve/virtio.c
usr.sbin/bhyve/virtio.h