diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-09-08 13:50:51 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 11:11:08 -0400 |
commit | e3904e6ed0d525e383eb961ed1da0596a10e5387 (patch) | |
tree | b6afc68d515fdd7c4e81682e6b301f303698a0ee | |
parent | 542423b0dd162a9dbf91109461703bd0e545c71f (diff) |
KVM: x86: drop duplicate kvm_flush_remote_tlb calls
kvm_mmu_slot_remove_write_access already calls it.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 3e893c4fdd39..7627ff607a90 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2152,7 +2152,6 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, | |||
2152 | spin_lock(&kvm->mmu_lock); | 2152 | spin_lock(&kvm->mmu_lock); |
2153 | kvm_mmu_slot_remove_write_access(kvm, log->slot); | 2153 | kvm_mmu_slot_remove_write_access(kvm, log->slot); |
2154 | spin_unlock(&kvm->mmu_lock); | 2154 | spin_unlock(&kvm->mmu_lock); |
2155 | kvm_flush_remote_tlbs(kvm); | ||
2156 | memslot = &kvm->memslots[log->slot]; | 2155 | memslot = &kvm->memslots[log->slot]; |
2157 | n = ALIGN(memslot->npages, BITS_PER_LONG) / 8; | 2156 | n = ALIGN(memslot->npages, BITS_PER_LONG) / 8; |
2158 | memset(memslot->dirty_bitmap, 0, n); | 2157 | memset(memslot->dirty_bitmap, 0, n); |
@@ -4896,7 +4895,6 @@ int kvm_arch_set_memory_region(struct kvm *kvm, | |||
4896 | 4895 | ||
4897 | kvm_mmu_slot_remove_write_access(kvm, mem->slot); | 4896 | kvm_mmu_slot_remove_write_access(kvm, mem->slot); |
4898 | spin_unlock(&kvm->mmu_lock); | 4897 | spin_unlock(&kvm->mmu_lock); |
4899 | kvm_flush_remote_tlbs(kvm); | ||
4900 | 4898 | ||
4901 | return 0; | 4899 | return 0; |
4902 | } | 4900 | } |