]> err.no Git - linux-2.6/commitdiff
KVM: MMU: Set shadow pte atomically in mmu_pte_write_zap_pte()
authorIzik Eidus <izike@qumranet.com>
Sun, 23 Sep 2007 10:30:19 +0000 (12:30 +0200)
committerAvi Kivity <avi@qumranet.com>
Mon, 22 Oct 2007 10:03:28 +0000 (12:03 +0200)
Setting shadow page table entry should be set atomicly using set_shadow_pte().

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c

index 6d84d30f5ed00aea64d11214ead90a15fcbb1ded..71716182d59dd542d2590fb9c7f10891be2d3f55 100644 (file)
@@ -1088,7 +1088,7 @@ static void mmu_pte_write_zap_pte(struct kvm_vcpu *vcpu,
                        mmu_page_remove_parent_pte(child, spte);
                }
        }
-       *spte = 0;
+       set_shadow_pte(spte, 0);
        kvm_flush_remote_tlbs(vcpu->kvm);
 }