]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: ia64: fix locking order entering guest
authorJes Sorensen <jes@sgi.com>
Thu, 9 Apr 2009 14:38:14 +0000 (16:38 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Apr 2009 10:52:09 +0000 (13:52 +0300)
commit433520e47847d08e155a99d1d23947fa376f0093
tree8d487aa14b570e7d7fcebb566ab785850d28dd4b
parent5bde80334b5ef5e8711afdfaf9a6b1d84c946a3c
KVM: ia64: fix locking order entering guest

Reorder locking as down_read() may return with local interrupts enabled,
which means we could go into vti_vcpu_run() with interrupts enabled.

This caused random crashes on the Altix as the timer interrupt tried
to read a memory mapped clock source, for which the TLB had not yet been
reinstated in the exit, before ipsr was retored.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/kvm-ia64.c