arm64: kvm: Fix incorrect comment on kvm_get_hyp_vector()
PATCH 1/1 arm64: kvm: Fix incorrect comment on kvm_get_hyp_vector()
The comment used to say that kvm_get_hyp_vector is only called on VHE systems. In fact, it is also called from the nVHE init function cpu_init_hyp_mode(). Fix the comment to stop confusing devs.
Signed-off-by David Brazdil <[email protected]>
--- arch/arm64/include/asm/kvm_mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/include/asm/kvm_mmu.h +1 -1
@@ -473,7 +473,7 @@ static inline int kvm_write_guest_lock(struct kvm *kvm, gpa_t gpa,extern void *__kvm_bp_vect_base;extern int __kvm_harden_el2_vector_slot; -/* This is only called on a VHE system */ +/* This is called on both VHE and !VHE systems */ static inline void *kvm_get_hyp_vector (void ) {struct bp_hardening_data *data =arm64_get_bp_hardening_data ();
Signature · 1 line
2.26.2
Quoted 9 lines · David Brazdil
The comment used to say that
kvm_get_hyp_vectoris only called on VHE systems. In fact, it is also called from the nVHE init functioncpu_init_hyp_mode(). Fix the comment to stop confusing devs.Signed-off-by David Brazdil <[email protected]>Signed-off-by Marc Zyngier <[email protected]>[...]
Applied to kvmarm-master/next, thanks!
[1/1] KVM: arm64: Fix incorrect comment on kvm_get_hyp_vector()
commit: 438f711ce1d889632467be80779c8f5762b107d7
Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.