Skip to content

Commit 538fbac

Browse files
author
Marc Zyngier
committed
KVM: arm64: nv: Release faulted-in VNCR page from mmu_lock critical section
The conversion to kvm_release_faultin_page() missed the requirement for this to be called within a critical section with mmu_lock held for write. Move this call up to satisfy this requirement. Fixes: 069a05e ("KVM: arm64: nv: Handle VNCR_EL2-triggered faults") Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent beab7d0 commit 538fbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/nested.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,9 +1228,9 @@ static int kvm_translate_vncr(struct kvm_vcpu *vcpu)
12281228
vt->cpu = -1;
12291229

12301230
kvm_make_request(KVM_REQ_MAP_L1_VNCR_EL2, vcpu);
1231+
kvm_release_faultin_page(vcpu->kvm, page, false, vt->wr.pw);
12311232
}
12321233

1233-
kvm_release_faultin_page(vcpu->kvm, page, false, vt->wr.pw);
12341234
if (vt->wr.pw)
12351235
mark_page_dirty(vcpu->kvm, gfn);
12361236

0 commit comments

Comments
 (0)