diff options
author | Avi Kivity <avi@redhat.com> | 2010-07-13 13:27:05 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 05:40:41 +0200 |
commit | 121eee97a7802acda8b78436cc53196e9885549f (patch) | |
tree | b2106507ae7267dfe69f108fea3704a17e2a6fd4 /arch/x86/kvm | |
parent | KVM: MMU: Add link_shadow_page() helper (diff) | |
download | linux-121eee97a7802acda8b78436cc53196e9885549f.tar.xz linux-121eee97a7802acda8b78436cc53196e9885549f.zip |
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/kvm')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
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) spte = __pa(sp->spt) | PT_PRESENT_MASK | PT_ACCESSED_MASK | PT_WRITABLE_MASK | PT_USER_MASK; - *sptep = spte; + __set_spte(sptep, spte); } static void kvm_mmu_page_unlink_children(struct kvm *kvm, |