]> Git Repo - linux.git/commit
KVM: PPC: Book3S HV: Convert ICS mutex lock to spin lock
authorSuresh Warrier <[email protected]>
Fri, 20 Mar 2015 09:39:46 +0000 (20:39 +1100)
committerAlexander Graf <[email protected]>
Tue, 21 Apr 2015 13:21:30 +0000 (15:21 +0200)
commit34cb7954c0aa7c8ad1591cb6cceae36432f55bb5
treec38fc5056a03bf57922236cc6ecf446564937ce8
parent878610fe9884a34a282cd4431237343864324d23
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 <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
arch/powerpc/kvm/book3s_xics.c
arch/powerpc/kvm/book3s_xics.h
This page took 0.054121 seconds and 4 git commands to generate.