Skip to content

Commit 1f3ca70

Browse files
jgoulyoupton
authored andcommitted
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]>
1 parent 1cd2b08 commit 1f3ca70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/kvm/arm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,8 @@ static __init int kvm_arm_init(void)
25912591
} else if (in_hyp_mode) {
25922592
kvm_info("VHE mode initialized successfully\n");
25932593
} else {
2594-
kvm_info("Hyp mode initialized successfully\n");
2594+
char mode = cpus_have_final_cap(ARM64_KVM_HVHE) ? 'h' : 'n';
2595+
kvm_info("Hyp mode (%cVHE) initialized successfully\n", mode);
25952596
}
25962597

25972598
/*

0 commit comments

Comments
 (0)