aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index bc614f91f5ba..3ce60ad1fe37 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2723,7 +2723,6 @@ void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot)
2723{ 2723{
2724 struct kvm_mmu_page *sp; 2724 struct kvm_mmu_page *sp;
2725 2725
2726 spin_lock(&kvm->mmu_lock);
2727 list_for_each_entry(sp, &kvm->arch.active_mmu_pages, link) { 2726 list_for_each_entry(sp, &kvm->arch.active_mmu_pages, link) {
2728 int i; 2727 int i;
2729 u64 *pt; 2728 u64 *pt;
@@ -2738,7 +2737,6 @@ void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot)
2738 pt[i] &= ~PT_WRITABLE_MASK; 2737 pt[i] &= ~PT_WRITABLE_MASK;
2739 } 2738 }
2740 kvm_flush_remote_tlbs(kvm); 2739 kvm_flush_remote_tlbs(kvm);
2741 spin_unlock(&kvm->mmu_lock);
2742} 2740}
2743 2741
2744void kvm_mmu_zap_all(struct kvm *kvm) 2742void kvm_mmu_zap_all(struct kvm *kvm)