[PATCH v2 23/39] arm64: cpufeature: Detect PE support for FEAT_NMI

Vladimir Murzin vladimir.murzin at arm.com
Wed Nov 25 06:56:52 PST 2026


On 11/12/26 15:37, Mark Brown wrote:
> On Thu, Nov 12, 2026 at 01:20:26PM +0000, Vladimir Murzin wrote:
> 
>> As KVM does not care about the host kernel supporting FEAT_NMI or not
>> to allow guests to use it, split the CPU cap in two : ARM64_HAS_NMI is
>> the hardware support, ARM64_NMI is the kernel making use of it.
> The split still makes sense but for nVHE (well, realistically pKVM) I
> think the hypervisor does have to care about host NMI usage, it has
> inject_host_exception() which sets up a fully synthesized exception
> state and returns to host EL1.  Unless I'm missing something this path
> needs to account for ALLINT/SPINTMASK since otherwise a superpriority
> interrupt can be delivered during exception entry which will confuse
> things.
> 

Nice catch! Indeed, we need to account for ALLINT/SPINTMASK when injecting
exception.

Cheers
Vladimir



More information about the linux-arm-kernel mailing list