From 7f2145ad6f3e7060147a2a4c4db35c641ff61b5c Mon Sep 17 00:00:00 2001 From: Izik Eidus Date: Sun, 23 Sep 2007 12:30:19 +0200 Subject: 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 --- drivers/kvm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/kvm') diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index 6d84d30..7171618 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); } -- cgit v1.1