]> 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)
commitdbb3269f27f54f71e8ce30a5c4c78d5ae0d82fa2
tree0b57c99e4cbd2facc29df9b08f7d6ad3a388067f
parentc52a011169c589d7ac0dddca44ce4c3ae261394f
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