KVM: ia64: restore irq state before calling kvm_vcpu_init
authorJes Sorensen <jes@sgi.com>
Thu, 16 Apr 2009 14:08:29 +0000 (16:08 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:44 +0000 (11:48 +0300)
commit457459c3c738dfb37226ba116ba301140da0d1fb
tree666b628e63afdf0bce5aabbf8a0cefe5db5332f9
parentf9b647adda0e821538b6d80e52873d861ffb1799
KVM: ia64: restore irq state before calling kvm_vcpu_init

Make sure to restore the psr after calling kvm_insert_vmm_mapping()
which calls ia64_itr_entry() as it disables local interrupts and
kvm_vcpu_init() may sleep.

Avoids a warning from the lock debugging code.

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