KVM: VMX: Fix locking imbalance on emulation failure

We have to disable preemption and IRQs on every exit from
handle_invalid_guest_state, otherwise we generate at least a
preempt_disable imbalance.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

authored by Jan Kiszka and committed by Avi Kivity 263799a3 34f0c1ad

+1 -1
+1 -1
arch/x86/kvm/vmx.c
··· 3168 3168 3169 3169 if (err != EMULATE_DONE) { 3170 3170 kvm_report_emulation_failure(vcpu, "emulation failure"); 3171 - return; 3171 + break; 3172 3172 } 3173 3173 3174 3174 if (signal_pending(current))