]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Don't advertise unsupported features for protected guests
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:06 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:07 +0000 (16:58 +0100)
commitbe3473c338d23c87485d7728818005f32b58009f
tree02172b7e5985d1af631015b14ba8e0233f67f446
parentff1e7f9897947ea79ece7eb587c8d93957af5ee8
KVM: arm64: Don't advertise unsupported features for protected guests

Both SVE and PMUv3 are treated as "restricted" features for protected
guests and attempts to access their corresponding architectural state
from a protected guest result in an undefined exception being injected
by the hypervisor.

Since these exceptions are unexpected and typically fatal for the guest,
don't advertise these features for protected guests.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260330144841.26181-6-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pkvm.h