Repository navigation
refactor(aarch64): replace psci crate with smccc - #445
Merged
Merged
Conversation
agicy
force-pushed
the
luanlai/smccc
branch
3 times, most recently
from
November 23, 2026 11:47
e596fd5 to
9e1fe85
Compare
li041
self-requested a review
November 23, 2026 12:25
Contributor
|
LGTM! It does make sense to replace |
li041
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the renamed
pscidependency withsmccc 0.2.3and use the explicit Smc calling convention for PSCI calls.The guest-facing PSCI emulation in
src/arch/aarch64/trap.rsis unchanged; this PR updates the underlying crate, direct SMC helper, PSCI calls, error type, and Cargo.lock.Motivation
The psci crate has been renamed to smccc. The new crate exposes the same PSCI operations through an explicit calling-convention type, so hvisor should use smccc::Smc instead of relying on the old psci crate feature selection.
Verification
Passed:
aarch64/qemu-gicv3.aarch64/gicv3with root + 1 guest:0x50400000cargo fmt --all -- --check.Risks and Limitations