]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Use build-time defines in has_vhe()
authorDavid Brazdil <dbrazdil@google.com>
Thu, 25 Jun 2020 13:14:09 +0000 (14:14 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 5 Jul 2020 17:38:01 +0000 (18:38 +0100)
commitba6796839e62be7c0f6a75ce6b198265b96aa7d3
tree925bb5d8c5e3255467fbebb93f6537fa1ae14de3
parent0875345929e557a7ddc8e1fd8d886f1817aa3899
KVM: arm64: Use build-time defines in has_vhe()

Build system compiles hyp code with macros specifying if the code belongs
to VHE or nVHE. Use these macros to evaluate has_vhe() at compile time.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200625131420.71444-5-dbrazdil@google.com
arch/arm64/include/asm/virt.h