Page MenuHomeFreeBSD

bhyve: Add FDT building code for arm64
ClosedPublic

Authored by markj on Jul 12 2023, 1:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 2:51 PM
Unknown Object (File)
Fri, May 10, 6:40 PM
Unknown Object (File)
Wed, May 8, 6:06 PM
Unknown Object (File)
Wed, May 8, 1:24 PM
Unknown Object (File)
Sat, May 4, 10:19 AM
Unknown Object (File)
May 3 2024, 5:32 PM
Unknown Object (File)
Apr 10 2024, 6:20 PM
Unknown Object (File)
Apr 7 2024, 8:30 AM

Details

Summary

fdt.c provides some basic routines which let platform initialization
code build the FDT that gets passed into the guest. For now this is not
very generic; we declare info about CPUs, memory, a single UART
(specified by -o console), a PCIe controller (used for virtio devices),
an interrupt controller and the platform timer.

Most imported from https://github.com/zxombie/freebsd/tree/bhyvearm64 ,
with some refactoring to avoid hard-coding various constants which
define the location of MMIO regions.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Jul 12 2023, 1:52 PM
This revision is now accepted and ready to land.Jul 12 2023, 6:48 PM

Add msi-controller to the GIC node. This is required to boot Linux guests, otherwise
drivers fall back to legacy IRQs, which aren't implemented currently. From jrtc27.

This revision now requires review to proceed.Dec 11 2023, 4:12 PM
This revision is now accepted and ready to land.Dec 12 2023, 6:59 AM
This revision was automatically updated to reflect the committed changes.