KVM: MMU: Optimize guest page table walk
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Thu, 21 Apr 2011 15:34:44 +0000 (00:34 +0900)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:38 +0000 (08:39 -0400)
commit6e2ca7d1802bf8ed9908435e34daa116662e7790
tree802f56f655246d21cf722e06353bd2d30011252a
parent40e19b519caeb93def89c45082d776fccfb96dbb
KVM: MMU: Optimize guest page table walk

This patch optimizes the guest page table walk by using get_user()
instead of copy_from_user().

With this patch applied, paging64_walk_addr_generic() has become
about 0.5us to 1.0us faster on my Phenom II machine with NPT on.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h