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
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Mon, Oct 13, 12:14 PM
Unknown Object (File)
Sun, Oct 12, 11:36 PM
Unknown Object (File)
Wed, Sep 17, 7:53 AM
Unknown Object (File)
Sep 13 2025, 4:25 AM

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 66059
Build 62942: 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