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)
commit95b3cf69bdf8b27a02d878e24ca353cebb4e009e
tree0b57c99e4cbd2facc29df9b08f7d6ad3a388067f
parent22368028febf81f5c6d1e9fdd737d50543219b00
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