KVM: MMU: fast path of handling guest page fault
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Wed, 20 Jun 2012 07:59:18 +0000 (15:59 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 11 Jul 2012 13:51:20 +0000 (16:51 +0300)
commitc7ba5b48cc8ddc015a9e0463813ca1e60bc42c59
treebb89a83af218d10f7d6f8ca4bae5c19fbfba7609
parent49fde3406f3266c5af9430467672c20b63a31e83
KVM: MMU: fast path of handling guest page fault

If the the present bit of page fault error code is set, it indicates
the shadow page is populated on all levels, it means what we do is
only modify the access bit which can be done out of mmu-lock

Currently, in order to simplify the code, we only fix the page fault
caused by write-protect on the fast path

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c