mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 09:37:17 +00:00
KVM: arm64: print Hyp mode
Print which of the hyp modes is being used (hVHE, nVHE). Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Marc Zyngier <maz@kernel.org> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: Mark Brown <broonie@kernel.org> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240209103719.3813599-1-joey.gouly@arm.com Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
This commit is contained in:
parent
1cd2b08f7c
commit
1f3ca7023f
@ -2591,7 +2591,8 @@ static __init int kvm_arm_init(void)
|
|||||||
} else if (in_hyp_mode) {
|
} else if (in_hyp_mode) {
|
||||||
kvm_info("VHE mode initialized successfully\n");
|
kvm_info("VHE mode initialized successfully\n");
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user