kvm_psci_call(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, this is the Kernel API Manual entry for kvm_psci_call(9) β€” and the NAME tea is: kvm_psci_call β€” handle PSCI call if r0 value is in range. πŸ’–βœ¨


🌸 SYNOPSIS 🌸

int kvm_psci_call (struct kvm_vcpu *vcpu );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • vcpu β€” Pointer to the VCPU struct. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So basically, this handles PSCI calls from guests through traps from HVC instructions. The calling convention is similar to SMC calls to the secure world, where the function number is placed in r0. πŸ’…

This function returns:

  • > 0 β€” success βœ…
  • 0 β€” success but exit to user space πŸ‘€
  • < 0 β€” errors πŸ’€

Errors: -EINVAL: Unrecognized PSCI function. 😭


🌈 SEE ALSO 🌈

Kernel file ./arch/arm64/kvm/psci.c β€” go read it, iykyk. πŸ“–βœ¨


mwah πŸ’‹ this iconic little page comes from the ./arch/arm64/kvm source/version and is dated October 2026 β€” periodt, no cap. πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from