]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: let reexecute_instruction work for tdp
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Sun, 13 Jan 2013 15:46:52 +0000 (23:46 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 22 Jan 2013 00:58:32 +0000 (22:58 -0200)
commitb42bca663ba79aac7b7a5c2a39379dd16081ebbd
tree0b57c99e4cbd2facc29df9b08f7d6ad3a388067f
parent9be70548544330725d444a17ba15f5c6189a3fd4
KVM: x86: let reexecute_instruction work for tdp

Currently, reexecute_instruction refused to retry all instructions if
tdp is enabled. If nested npt is used, the emulation may be caused by
shadow page, it can be fixed by dropping the shadow page. And the only
condition that tdp can not retry the instruction is the access fault
on error pfn

Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c