Re: [PATCH v3] KVM: arm64: Prevent the host from using an smc with imm16 != 0

From: Marc Zyngier

Date: Thu Apr 02 2026 - 09:43:23 EST


On Mon, 30 Mar 2026 10:54:41 +0000, Sebastian Ene wrote:
> The ARM Service Calling Convention (SMCCC) specifies that the function
> identifier and parameters should be passed in registers, leaving the
> 16-bit immediate field un-handled in pKVM when an SMC instruction is
> trapped.
> Since the HVC is a private interface between EL2 and the host,
> enforce the host kernel running under pKVM to use an immediate value
> of 0 only when using SMCs to make it clear for non-compliant software
> talking to Trustzone that we only use SMCCC.
>
> [...]

Applied to next, thanks!

[1/1] KVM: arm64: Prevent the host from using an smc with imm16 != 0
commit: cf6348af645bd8e38758114e6afcc406c5bb515f

Cheers,

M.
--
Without deviation from the norm, progress is not possible.