Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7533377

Browse files
sean-jcbonzini
authored andcommitted
KVM: x86/mmu: Use yield-safe TDP MMU root iter in MMU notifier unmapping
Use the yield-safe variant of the TDP MMU iterator when handling an unmapping event from the MMU notifier, as most occurences of the event allow yielding. Fixes: e1eed58 ("KVM: x86/mmu: Allow yielding during MMU notifier unmap/zap, if possible") Cc: [email protected] Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 05b2963 commit 7533377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/mmu/tdp_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ bool kvm_tdp_mmu_unmap_gfn_range(struct kvm *kvm, struct kvm_gfn_range *range,
10311031
{
10321032
struct kvm_mmu_page *root;
10331033

1034-
for_each_tdp_mmu_root(kvm, root, range->slot->as_id)
1034+
for_each_tdp_mmu_root_yield_safe(kvm, root, range->slot->as_id, false)
10351035
flush = zap_gfn_range(kvm, root, range->start, range->end,
10361036
range->may_block, flush, false);
10371037

0 commit comments

Comments
 (0)