Skip to content

Commit bc3b3c1

Browse files
sean-jcbonzini
authored andcommitted
KVM: x86/mmu: Drop a redundant, broken remote TLB flush
A recent commit to fix the calls to kvm_flush_remote_tlbs_with_address() in kvm_zap_gfn_range() inadvertantly added yet another flush instead of fixing the existing flush. Drop the redundant flush, and fix the params for the existing flush. Cc: [email protected] Fixes: 2822da4 ("KVM: x86/mmu: fix parameters to kvm_flush_remote_tlbs_with_address") Cc: Maxim Levitsky <[email protected]> Cc: Maciej S. Szmigiero <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 61b05a9 commit bc3b3c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/x86/kvm/mmu/mmu.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5752,13 +5752,11 @@ void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start, gfn_t gfn_end)
57525752
for (i = 0; i < KVM_ADDRESS_SPACE_NUM; i++)
57535753
flush = kvm_tdp_mmu_zap_gfn_range(kvm, i, gfn_start,
57545754
gfn_end, flush);
5755-
if (flush)
5756-
kvm_flush_remote_tlbs_with_address(kvm, gfn_start,
5757-
gfn_end - gfn_start);
57585755
}
57595756

57605757
if (flush)
5761-
kvm_flush_remote_tlbs_with_address(kvm, gfn_start, gfn_end);
5758+
kvm_flush_remote_tlbs_with_address(kvm, gfn_start,
5759+
gfn_end - gfn_start);
57625760

57635761
kvm_dec_notifier_count(kvm, gfn_start, gfn_end);
57645762

0 commit comments

Comments
 (0)