Page MenuHomeFreeBSD

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

Authored by andrew on Wed, Aug 6, 4:20 PM.
Tags
None
Referenced Files
F126535916: D51763.id159963.diff
Wed, Aug 20, 5:11 PM
F126533509: D51763.id.diff
Wed, Aug 20, 4:28 PM
F126519622: D51763.id159877.diff
Wed, Aug 20, 12:20 PM
F126518389: D51763.id159976.diff
Wed, Aug 20, 11:59 AM
F126517507: D51763.id159964.diff
Wed, Aug 20, 11:45 AM
F126516984: D51763.diff
Wed, Aug 20, 11:36 AM
Unknown Object (File)
Tue, Aug 19, 2:51 PM
Unknown Object (File)
Sat, Aug 16, 4:48 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.Wed, Aug 6, 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.Thu, Aug 7, 2:47 PM