]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbcbc3a8f7c3f5785efb349be995b312fc62a8a3a
tree802f56f655246d21cf722e06353bd2d30011252a
parent8c1495ea5d40aae94ce04d7e4c454266e870985f
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