OSDN Git Service

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)
commit53b671128bd7f9ea41ae1a06106d88eb4cf66623
tree925bb5d8c5e3255467fbebb93f6537fa1ae14de3
parent7621712918ad4f5e6356193d9058debf657a6254
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