Page MenuHomeFreeBSD

bhyve/arm64: Implement PSCI_FNID_CPU_OFF
ClosedPublic

Authored by andrew on Wed, Aug 6, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 18, 11:52 PM
Unknown Object (File)
Sun, Aug 17, 9:00 PM
Unknown Object (File)
Thu, Aug 7, 4:53 PM

Details

Summary

Support PSCI CPU_OFF by suspending the CPU and removing it from the
running CPU set.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

andrew requested review of this revision.Wed, Aug 6, 4:21 PM

This doesn't actually wait for the target vcpu thread to bounce back to userspace, do we need to synchronize? Is it expected that the target vcpu is usually the current vcpu?

CPU_OFF can only be called from the target CPU

CPU_OFF can only be called from the target CPU

If we expect the kernel to guarantee that, it'd be nice to assert it here.

This revision is now accepted and ready to land.Thu, Aug 7, 12:46 PM

I'm not sure there is anything to assert on. CPU_OFF is defined to "Power down the calling core" & doesn't take any arguments.

I'm not sure there is anything to assert on. CPU_OFF is defined to "Power down the calling core" & doesn't take any arguments.

Ah ok, I thought the target vCPU was a parameter to the CPU_OFF command.

This revision was automatically updated to reflect the committed changes.