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 <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
Izik Eidus 2007-09-23 12:30:19 +02:00 committed by Avi Kivity
parent ae6200baea
commit 7f2145ad6f
1 changed files with 1 additions and 1 deletions

View 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);
}