summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/paging_tmpl.h
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 16:14:17 +0100
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 14:48:15 +0100
commit8fd75e1216e0ba601a746177e6c102d5593b572f (patch)
treed9f8e867ccec9ecaa2b77616a01c1c3d0875d76e /arch/x86/kvm/paging_tmpl.h
parentum: remove the second argument of k[un]map_atomic() (diff)
downloadlinux-8fd75e1216e0ba601a746177e6c102d5593b572f.tar.xz
linux-8fd75e1216e0ba601a746177e6c102d5593b572f.zip
x86: remove the second argument of k[un]map_atomic()
Acked-by: Avi Kivity <avi@redhat.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'arch/x86/kvm/paging_tmpl.h')
-rw-r--r--arch/x86/kvm/paging_tmpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h
index 15610285ebb6..df5a70311be8 100644
--- a/arch/x86/kvm/paging_tmpl.h
+++ b/arch/x86/kvm/paging_tmpl.h
@@ -92,9 +92,9 @@ static int FNAME(cmpxchg_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
if (unlikely(npages != 1))
return -EFAULT;
- table = kmap_atomic(page, KM_USER0);
+ table = kmap_atomic(page);
ret = CMPXCHG(&table[index], orig_pte, new_pte);
- kunmap_atomic(table, KM_USER0);
+ kunmap_atomic(table);
kvm_release_page_dirty(page);