diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-07-14 16:05:45 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 03:40:51 (GMT) |
commit | 68be0803456b3eed33038be5566710ad7648c854 (patch) | |
tree | 06235f7cf0330da1cdc9dd9b61c86432181b6ee0 /arch/x86/kvm | |
parent | d153513ddef5698a292b53790008b2e7660cd08d (diff) | |
download | linux-68be0803456b3eed33038be5566710ad7648c854.tar.xz |
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 eb55ec5..689c2c3 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 |