[PATCH 03/11] KVM: MMU: Set shadow pte atomically in mmu_pte_write_zap_pte()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Sunday, October 21, 2007 - 4:08 am

From: Izik Eidus <izike@qumranet.com>

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/11] KVM updates for Linux 2.6.24-rc review, Avi Kivity, (Sun Oct 21, 4:08 am)
[PATCH 03/11] KVM: MMU: Set shadow pte atomically in mmu_p ..., Avi Kivity, (Sun Oct 21, 4:08 am)
Re: [PATCH 00/11] KVM updates for Linux 2.6.24-rc review, Laurent Vivier, (Sun Oct 21, 4:53 am)