aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-13 07:27:05 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 23:40:41 -0400
commit121eee97a7802acda8b78436cc53196e9885549f (patch)
treeb2106507ae7267dfe69f108fea3704a17e2a6fd4 /arch/x86
parent32ef26a3598636be520abed90ed0c2f439d36bbe (diff)
KVM: MMU: Use __set_spte to link shadow pages
To avoid split accesses to 64 bit sptes on i386, use __set_spte() to link shadow pages together. (not technically required since shadow pages are __GFP_KERNEL, so upper 32 bits are always clear) Reviewed-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index df3a7a79cce3..5a6019a534a3 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1489,7 +1489,7 @@ static void link_shadow_page(u64 *sptep, struct kvm_mmu_page *sp)
1489 spte = __pa(sp->spt) 1489 spte = __pa(sp->spt)
1490 | PT_PRESENT_MASK | PT_ACCESSED_MASK 1490 | PT_PRESENT_MASK | PT_ACCESSED_MASK
1491 | PT_WRITABLE_MASK | PT_USER_MASK; 1491 | PT_WRITABLE_MASK | PT_USER_MASK;
1492 *sptep = spte; 1492 __set_spte(sptep, spte);
1493} 1493}
1494 1494
1495static void kvm_mmu_page_unlink_children(struct kvm *kvm, 1495static void kvm_mmu_page_unlink_children(struct kvm *kvm,