mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 01:32:47 -04:00
KVM: arm64: nv: Handle TLBI S1E2 for VNCR invalidation with mmu_lock held
Calling invalidate_vncr_va() without the mmu_lock held for write
is a bad idea, and lockdep tells you about that.
Fixes: 4ffa72ad8f ("KVM: arm64: nv: Add S1 TLB invalidation primitive for VNCR_EL2")
Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
@@ -1044,6 +1044,8 @@ void kvm_handle_s1e2_tlbi(struct kvm_vcpu *vcpu, u32 inst, u64 val)
|
||||
struct s1e2_tlbi_scope scope = {};
|
||||
|
||||
compute_s1_tlbi_range(vcpu, inst, val, &scope);
|
||||
|
||||
guard(write_lock)(&vcpu->kvm->mmu_lock);
|
||||
invalidate_vncr_va(vcpu->kvm, &scope);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user