Skip to content

Commit 2cd9542

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: Advertise NV2 in the boot messages
Make it a bit easier to understand what people are running by adding a +NV2 string to the successful KVM initialisation. Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Joey Gouly <joey.gouly@arm.com> Link: https://lore.kernel.org/r/20250220134907.554085-6-maz@kernel.org Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 8f8d608 commit 2cd9542

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/arm64/kvm/arm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2806,11 +2806,12 @@ static __init int kvm_arm_init(void)
28062806
if (err)
28072807
goto out_hyp;
28082808

2809-
kvm_info("%s%sVHE mode initialized successfully\n",
2809+
kvm_info("%s%sVHE%s mode initialized successfully\n",
28102810
in_hyp_mode ? "" : (is_protected_kvm_enabled() ?
28112811
"Protected " : "Hyp "),
28122812
in_hyp_mode ? "" : (cpus_have_final_cap(ARM64_KVM_HVHE) ?
2813-
"h" : "n"));
2813+
"h" : "n"),
2814+
cpus_have_final_cap(ARM64_HAS_NESTED_VIRT) ? "+NV2": "");
28142815

28152816
/*
28162817
* FIXME: Do something reasonable if kvm_init() fails after pKVM

0 commit comments

Comments
 (0)