summaryrefslogtreecommitdiff
path: root/drivers/kvm/paging_tmpl.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-05-31 12:46:04 (GMT)
committerAvi Kivity <avi@qumranet.com>2007-07-16 09:05:44 (GMT)
commite663ee64aefc57f7eff7325142206c4ea0200be8 (patch)
treea95c5a1015914ee4101c1770039ad1457e8767c3 /drivers/kvm/paging_tmpl.h
parent0d551bb698e1328f685ae3611c4a4a96f41bef97 (diff)
downloadlinux-fsl-qoriq-e663ee64aefc57f7eff7325142206c4ea0200be8.tar.xz
KVM: MMU: Make setting shadow ptes atomic on i386
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/paging_tmpl.h')
-rw-r--r--drivers/kvm/paging_tmpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h
index 397a403..fabc2c9 100644
--- a/drivers/kvm/paging_tmpl.h
+++ b/drivers/kvm/paging_tmpl.h
@@ -234,7 +234,7 @@ static void FNAME(set_pte_common)(struct kvm_vcpu *vcpu,
spte |= gaddr;
spte |= PT_SHADOW_IO_MARK;
spte &= ~PT_PRESENT_MASK;
- *shadow_pte = spte;
+ set_shadow_pte(shadow_pte, spte);
return;
}
@@ -280,7 +280,7 @@ unshadowed:
if (access_bits & PT_WRITABLE_MASK)
mark_page_dirty(vcpu->kvm, gaddr >> PAGE_SHIFT);
- *shadow_pte = spte;
+ set_shadow_pte(shadow_pte, spte);
page_header_update_slot(vcpu->kvm, shadow_pte, gaddr);
if (!was_rmapped)
rmap_add(vcpu, shadow_pte);