KVM: arm64: Add ARM64_KVM_PROTECTED_MODE CPU capability
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:40:58 +0000 (18:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 08:44:19 +0000 (08:44 +0000)
commit3eb681fba2bf8b67b65ce92d0ebfd7cbfc263da9
tree80f606f3844112537952138f600bcc926a5b1b35
parentd8b369c4e31430a4746571bcae45a98933827232
KVM: arm64: Add ARM64_KVM_PROTECTED_MODE CPU capability

Expose the boolean value whether the system is running with KVM in
protected mode (nVHE + kernel param). CPU capability was selected over
a global variable to allow use in alternatives.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-3-dbrazdil@google.com
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/virt.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kvm/arm.c