]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02733c35889247c728804d669d7667832e7ffb53
tree80f606f3844112537952138f600bcc926a5b1b35
parent7403b44c4ab4be079aa97aa61eccd08c617a2e15
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