KVM: MMU: cache mmio info on page fault path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 11 Jul 2011 19:23:20 +0000 (03:23 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Jul 2011 08:50:26 +0000 (11:50 +0300)
commitbebb106a5afa32efdf5332ed4a40bf4d6d06b56e
treeb8da141e846c9d25fbe4c69b12582cada03726e3
parentaf7cc7d1ee422a612f6785e347a893d44cc892ea
KVM: MMU: cache mmio info on page fault path

If the page fault is caused by mmio, we can cache the mmio info, later, we do
not need to walk guest page table and quickly know it is a mmio fault while we
emulate the mmio instruction

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/paging_tmpl.h
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h