diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-07-14 18:05:45 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 05:40:51 +0200 |
commit | 68be0803456b3eed33038be5566710ad7648c854 (patch) | |
tree | 06235f7cf0330da1cdc9dd9b61c86432181b6ee0 | |
parent | KVM: Document KVM_GET_SUPPORTED_CPUID2 ioctl (diff) | |
download | linux-68be0803456b3eed33038be5566710ad7648c854.tar.xz linux-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>
-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) { 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 |