KVM: x86: never re-execute instruction with enabled tdp
authorGleb Natapov <gleb@redhat.com>
Wed, 14 Jul 2010 16:05:45 +0000 (19:05 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:51 +0000 (06:40 +0300)
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 <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c

index eb55ec5..689c2c3 100644 (file)
@@ -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