]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Include VM type when checking VM capabilities in pKVM
authorFuad Tabba <tabba@google.com>
Thu, 11 Dec 2025 10:47:05 +0000 (10:47 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 15:43:15 +0000 (15:43 +0000)
commit43a21a0f0c4ab7de755f2cee2ff4700f26fe0bba
tree91828338d42080837d704acfd26f0fd97b213bd2
parentc273feee70bd3d8c6c4d5efaf6b3ae945c839378
KVM: arm64: Include VM type when checking VM capabilities in pKVM

Certain features and capabilities are restricted in protected mode. Most
of these features are restricted only for protected VMs, but some
are restricted for ALL VMs in protected mode.

Extend the pKVM capability check to pass the VM (kvm), and use that when
determining supported features.

Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20251211104710.151771-6-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pkvm.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/pkvm.c