Skip to contentSkip to conversation

KVM: x86: drop duplicate kvm_flush_remote_tlb calls

PATCH Applied Marcelo Tosatti 2 participants 2 messages Sep 8, 2009 – Sep 9, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

kvm_mmu_slot_remove_write_access already calls it.

arch/x86/kvm/x86.c +0 -2
index 891234b..f83e990 100644
@@ -2159,7 +2159,6 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
 		spin_lock(&kvm->mmu_lock);
 		kvm_mmu_slot_remove_write_access(kvm, log->slot);
 		spin_unlock(&kvm->mmu_lock);
-		kvm_flush_remote_tlbs(kvm);
 		memslot = &kvm->memslots[log->slot];
 		n = ALIGN(memslot->npages, BITS_PER_LONG) / 8;
 		memset(memslot->dirty_bitmap, 0, n);
@@ -4907,7 +4906,6 @@ int kvm_arch_set_memory_region(struct kvm *kvm,
 
 	kvm_mmu_slot_remove_write_access(kvm, mem->slot);
 	spin_unlock(&kvm->mmu_lock);
-	kvm_flush_remote_tlbs(kvm);
 
 	return 0;
 }
Applied
#1 lore raw
Quoted 2 lines · Marcelo Tosatti

kvm_mmu_slot_remove_write_access already calls it.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function