summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-07-14 19:05:45 +0300
committerAvi Kivity <avi@redhat.com>2010-08-02 06:40:51 +0300
commit68be0803456b3eed33038be5566710ad7648c854 (patch)
tree06235f7cf0330da1cdc9dd9b61c86432181b6ee0 /arch
parentd153513ddef5698a292b53790008b2e7660cd08d (diff)
downloadlinux-3.10-68be0803456b3eed33038be5566710ad7648c854.tar.gz
linux-3.10-68be0803456b3eed33038be5566710ad7648c854.tar.bz2
linux-3.10-68be0803456b3eed33038be5566710ad7648c854.zip
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 <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index eb55ec55125..689c2c3182a 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