]> 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)
commitca1ce4acbc6c34b5d4b6fb4d85ead1953d269c0d
tree925bb5d8c5e3255467fbebb93f6537fa1ae14de3
parentfb77ad574e4a026f04215225ff40f1ec788f1850
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