diff options
author | Izik Eidus <izike@qumranet.com> | 2007-09-23 06:30:19 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-22 06:03:28 -0400 |
commit | 7f2145ad6f3e7060147a2a4c4db35c641ff61b5c (patch) | |
tree | 0329ae430d718a11a52107a86d9abbd41b2fc944 | |
parent | ae6200baea4175cac684ea76f78082b31afbdefa (diff) |
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>
-rw-r--r-- | drivers/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index 6d84d30f5ed0..71716182d59d 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, | |||
1088 | mmu_page_remove_parent_pte(child, spte); | 1088 | mmu_page_remove_parent_pte(child, spte); |
1089 | } | 1089 | } |
1090 | } | 1090 | } |
1091 | *spte = 0; | 1091 | set_shadow_pte(spte, 0); |
1092 | kvm_flush_remote_tlbs(vcpu->kvm); | 1092 | kvm_flush_remote_tlbs(vcpu->kvm); |
1093 | } | 1093 | } |
1094 | 1094 | ||