]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Convert ICS mutex lock to spin lock
authorSuresh Warrier <warrier@linux.vnet.ibm.com>
Fri, 20 Mar 2015 09:39:46 +0000 (20:39 +1100)
committerAlexander Graf <agraf@suse.de>
Tue, 21 Apr 2015 13:21:30 +0000 (15:21 +0200)
commitd652b1f0ca41fb01ed3a1897e161146692443425
treec38fc5056a03bf57922236cc6ecf446564937ce8
parent503fdf7f46cfe12564ca32990868136ab7a21450
KVM: PPC: Book3S HV: Convert ICS mutex lock to spin lock

Replaces the ICS mutex lock with a spin lock since we will be porting
these routines to real mode. Note that we need to disable interrupts
before we take the lock in anticipation of the fact that on the guest
side, we are running in the context of a hard irq and interrupts are
disabled (EE bit off) when the lock is acquired. Again, because we
will be acquiring the lock in hypervisor real mode, we need to use
an arch_spinlock_t instead of a normal spinlock here as we want to
avoid running any lockdep code (which may not be safe to execute in
real mode).

Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_xics.c
arch/powerpc/kvm/book3s_xics.h