From: Izik Eidus Date: Sun, 23 Sep 2007 10:30:19 +0000 (+0200) Subject: KVM: MMU: Set shadow pte atomically in mmu_pte_write_zap_pte() X-Git-Tag: v2.6.24-rc1~59^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2145ad6f3e7060147a2a4c4db35c641ff61b5c;p=linux-2.6 KVM: MMU: Set shadow pte atomically in mmu_pte_write_zap_pte() Setting shadow page table entry should be set atomicly using set_shadow_pte(). Signed-off-by: Izik Eidus Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index 6d84d30f5e..71716182d5 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c @@ -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); }