diff options
| author | David Brazdil <dbrazdil@google.com> | 2020-12-02 18:40:58 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2020-12-04 08:44:19 +0000 |
| commit | 3eb681fba2bf8b67b65ce92d0ebfd7cbfc263da9 (patch) | |
| tree | 80f606f3844112537952138f600bcc926a5b1b35 /arch/arm64/include/asm/cpucaps.h | |
| parent | d8b369c4e31430a4746571bcae45a98933827232 (diff) | |
| download | linux-next-3eb681fba2bf8b67b65ce92d0ebfd7cbfc263da9.tar.gz linux-next-3eb681fba2bf8b67b65ce92d0ebfd7cbfc263da9.zip | |
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
Diffstat (limited to 'arch/arm64/include/asm/cpucaps.h')
| -rw-r--r-- | arch/arm64/include/asm/cpucaps.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/cpucaps.h b/arch/arm64/include/asm/cpucaps.h index a7242ef2a2cd..350c98103d45 100644 --- a/arch/arm64/include/asm/cpucaps.h +++ b/arch/arm64/include/asm/cpucaps.h @@ -65,7 +65,8 @@ #define ARM64_MTE 57 #define ARM64_WORKAROUND_1508412 58 #define ARM64_HAS_LDAPR 59 +#define ARM64_KVM_PROTECTED_MODE 60 -#define ARM64_NCAPS 60 +#define ARM64_NCAPS 61 #endif /* __ASM_CPUCAPS_H */ |
