KVM: arm64: Add is_pkvm_initialized() helper
authorQuentin Perret <qperret@google.com>
Tue, 23 Apr 2024 15:05:25 +0000 (16:05 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 May 2024 15:48:14 +0000 (16:48 +0100)
commitd81a91af417c8f34dc3c3f8f90240e843d1c5c08
tree1beb7198db3fb18a51b10b43f88ace93a8b0ca46
parent948e1a53c2e95ad4c03cc6201edcb5d92e87d841
KVM: arm64: Add is_pkvm_initialized() helper

Add a helper allowing to check when the pkvm static key is enabled to
ease the introduction of pkvm hooks in other parts of the code.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240423150538.2103045-18-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/virt.h