[PATCH v3 34/44] KVM: arm64: Propagate ALLINT masking on exception injection

Mark Brown broonie at kernel.org
Tue Dec 1 09:41:08 PST 2026


On Mon, Nov 30, 2026 at 03:54:56PM +0000, Vladimir Murzin wrote:

> --- a/arch/arm64/kvm/hyp/nvhe/hyp-main.c
> +++ b/arch/arm64/kvm/hyp/nvhe/hyp-main.c
> @@ -1726,6 +1726,9 @@ void inject_host_exception(u64 esr)
>  	if (system_supports_mte())
>  		spsr_el2 |= PSR_TCO_BIT;
>  
> +	if (system_supports_nmi() && !(sctlr & SCTLR_EL1_SPINTMASK))
> +		spsr_el2 |= PSR_ALLINT_BIT;
> +
>  	if (esr_fsc_is_translation_fault(esr))
>  		write_sysreg_el1(read_sysreg_el2(SYS_FAR), SYS_FAR);

We also generate SPSR_EL2 in __hyp_do_panic(), I missed that one last
time sorry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20261201/9134df97/attachment-0001.sig>


More information about the linux-arm-kernel mailing list