Skip to content

Commit 438f711

Browse files
David BrazdilMarc Zyngier
authored andcommitted
KVM: arm64: 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]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 71b3ec5 commit 438f711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/kvm_mmu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ static inline int kvm_write_guest_lock(struct kvm *kvm, gpa_t gpa,
473473
extern void *__kvm_bp_vect_base;
474474
extern int __kvm_harden_el2_vector_slot;
475475

476-
/* This is only called on a VHE system */
476+
/* This is called on both VHE and !VHE systems */
477477
static inline void *kvm_get_hyp_vector(void)
478478
{
479479
struct bp_hardening_data *data = arm64_get_bp_hardening_data();

0 commit comments

Comments
 (0)