Skip to content

Commit

Permalink
KVM: x86: never re-execute instruction with enabled tdp
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed Aug 2, 2010
1 parent d153513 commit 68be080
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68be080

Please sign in to comment.