]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: retry non-page-table writing instructions
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 22 Sep 2011 09:02:48 +0000 (17:02 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 27 Dec 2011 09:16:50 +0000 (11:16 +0200)
commit2d4e4ac2972774d10029991874174bb94df9cae9
tree1ff844904958cf669c86650da4601eb392f14a91
parenteff54dec028a9d30df52138ee04f7ffd0fee404d
KVM: x86: retry non-page-table writing instructions

If the emulation is caused by #PF and it is non-page_table writing instruction,
it means the VM-EXIT is caused by shadow page protected, we can zap the shadow
page and retry this instruction directly

The idea is from Avi

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