]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: x86: Rework request for immediate exit
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 28 Apr 2013 08:50:52 +0000 (10:50 +0200)
committerGleb Natapov <gleb@redhat.com>
Sun, 28 Apr 2013 09:44:18 +0000 (12:44 +0300)
commit730dca42c1d363c939da18c1499c7327c66e2b37
treef94998cccc58814642c4160da1bb75181af6ba68
parent6614c7d042eb1096d4eba253b4952bec349f8593
KVM: x86: Rework request for immediate exit

The VMX implementation of enable_irq_window raised
KVM_REQ_IMMEDIATE_EXIT after we checked it in vcpu_enter_guest. This
caused infinite loops on vmentry. Fix it by letting enable_irq_window
signal the need for an immediate exit via its return value and drop
KVM_REQ_IMMEDIATE_EXIT.

This issue only affects nested VMX scenarios.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h