diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-07-14 12:05:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 23:40:51 -0400 |
commit | 68be0803456b3eed33038be5566710ad7648c854 (patch) | |
tree | 06235f7cf0330da1cdc9dd9b61c86432181b6ee0 /arch/x86/kvm | |
parent | d153513ddef5698a292b53790008b2e7660cd08d (diff) |
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/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
3936 | { | 3936 | { |
3937 | gpa_t gpa; | 3937 | gpa_t gpa; |
3938 | 3938 | ||
3939 | if (tdp_enabled) | ||
3940 | return false; | ||
3941 | |||
3939 | /* | 3942 | /* |
3940 | * if emulation was due to access to shadowed page table | 3943 | * if emulation was due to access to shadowed page table |
3941 | * and it failed try to unshadow page and re-entetr the | 3944 | * and it failed try to unshadow page and re-entetr the |