KVM: VMX: Fix locking imbalance on emulation failure
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 21 Jul 2009 08:43:07 +0000 (10:43 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 5 Aug 2009 10:59:45 +0000 (13:59 +0300)
commit263799a3616242201e20fd2025fe84047b1379b1
treed030af0a305b71ec547ccf6f702af8d4ca151742
parent34f0c1ad27a74bd5eb0f99ea43ab6a4658d6419d
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>
arch/x86/kvm/vmx.c