diff options
author | Joey Gouly <[email protected]> | 2024-02-09 10:37:19 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-02-12 20:25:43 +0000 |
commit | 1f3ca7023fe63a80e4acfa82f0186c3263356dcb (patch) | |
tree | 9048adffbdbab054ea3c641ba47fd6fffa84da09 | |
parent | 1cd2b08f7cc4a57cc1b04f62b6349970d13456c3 (diff) |
KVM: arm64: print Hyp mode
Print which of the hyp modes is being used (hVHE, nVHE).
Signed-off-by: Joey Gouly <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Oliver Upton <[email protected]>
Cc: Mark Brown <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
-rw-r--r-- | arch/arm64/kvm/arm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index a25265aca432..090dbc954157 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -2591,7 +2591,8 @@ static __init int kvm_arm_init(void) } else if (in_hyp_mode) { kvm_info("VHE mode initialized successfully\n"); } else { - kvm_info("Hyp mode initialized successfully\n"); + char mode = cpus_have_final_cap(ARM64_KVM_HVHE) ? 'h' : 'n'; + kvm_info("Hyp mode (%cVHE) initialized successfully\n", mode); } /* |