Page MenuHomeFreeBSD

bhyve/arm64: Stop assuming the CPU index is MPIDR
ClosedPublic

Authored by andrew on Aug 6 2025, 4:20 PM.
Tags
None
Referenced Files
F145241516: D51763.id159964.diff
Tue, Feb 17, 12:08 PM
Unknown Object (File)
Mon, Feb 16, 8:11 AM
Unknown Object (File)
Fri, Feb 13, 3:24 AM
Unknown Object (File)
Wed, Jan 28, 2:32 AM
Unknown Object (File)
Jan 16 2026, 3:11 PM
Unknown Object (File)
Jan 16 2026, 5:25 AM
Unknown Object (File)
Jan 8 2026, 7:10 AM
Unknown Object (File)
Jan 7 2026, 7:42 PM

Details

Summary

We need the MPIDR value in a few places in userspace. Rather than
calculate it ask the kernel to give it to us. This allows us to change
how it is calculated without having to change userspace.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

andrew requested review of this revision.Aug 6 2025, 4:20 PM
usr.sbin/bhyve/aarch64/bhyverun_machdep.c
380

We should check for an error, even if we just assert error == 0.

usr.sbin/bhyve/aarch64/vmexit.c
174–175

This TODO comment can be dropped, no?

Update based on feedback from @markj
Add a missing header file

This revision is now accepted and ready to land.Aug 7 2025, 2:47 PM