KVM: VMX: Fix locking order in handle_invalid_guest_state
authorJan Kiszka <jan.kiszka@web.de>
Wed, 22 Jul 2009 21:53:26 +0000 (23:53 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 5 Aug 2009 10:59:44 +0000 (13:59 +0300)
commit34f0c1ad27a74bd5eb0f99ea43ab6a4658d6419d
treebb2381fbe0b6d198864c7719ef6a3b3626d93303
parent025dbbf36a7680bffe54d9dcbf0a8bc01a7cbd10
KVM: VMX: Fix locking order in handle_invalid_guest_state

Release and re-acquire preemption and IRQ lock in the same order as
vcpu_enter_guest does.

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