KVM: MMU: prefetch ptes when intercepted guest #PF
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Sun, 22 Aug 2010 11:12:48 +0000 (19:12 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:27 +0000 (10:51 +0200)
commit957ed9effd80b04482cbdce8c95bdf803a656b94
tree0d554cf6ca80fbb2bb1d3ef9b06f2a210a6b171f
parent48987781eb1d1e8ded41f55cd5806615fda92c6e
KVM: MMU: prefetch ptes when intercepted guest #PF

Support prefetch ptes when intercept guest #PF, avoid to #PF by later
access

If we meet any failure in the prefetch path, we will exit it and
not try other ptes to avoid become heavy path

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h