From: Gleb Natapov Date: Wed, 14 Jul 2010 16:05:45 +0000 (+0300) Subject: KVM: x86: never re-execute instruction with enabled tdp X-Git-Tag: firefly_0821_release~9833^2~1315^2~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68be0803456b3eed33038be5566710ad7648c854;p=firefly-linux-kernel-4.4.55.git KVM: x86: never re-execute instruction with enabled tdp With tdp enabled we should get into emulator only when emulating io, so reexecution will always bring us back into emulator. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index eb55ec55125c..689c2c3182ab 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3936,6 +3936,9 @@ static bool reexecute_instruction(struct kvm_vcpu *vcpu, gva_t gva) { gpa_t gpa; + if (tdp_enabled) + return false; + /* * if emulation was due to access to shadowed page table * and it failed try to unshadow page and re-entetr the