diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2016-06-22 14:21:59 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2016-07-28 16:09:34 +1000 |
commit | f024ee098476a3e620232e4a78cfac505f121245 (patch) | |
tree | 800756dda1b3e0614fa7d8e616897e36f9dc29db /drivers/irqchip/irq-mips-gic.c | |
parent | 912902ce78b0d48f717f9128e61fb9bffbd65f86 (diff) | |
download | op-kernel-dev-f024ee098476a3e620232e4a78cfac505f121245.zip op-kernel-dev-f024ee098476a3e620232e4a78cfac505f121245.tar.gz |
KVM: PPC: Book3S HV: Pull out TM state save/restore into separate procedures
This moves the transactional memory state save and restore sequences
out of the guest entry/exit paths into separate procedures. This is
so that these sequences can be used in going into and out of nap
in a subsequent patch.
The only code changes here are (a) saving and restore LR on the
stack, since these new procedures get called with a bl instruction,
(b) explicitly saving r1 into the PACA instead of assuming that
HSTATE_HOST_R1(r13) is already set, and (c) removing an unnecessary
and redundant setting of MSR[TM] that should have been removed by
commit 9d4d0bdd9e0a ("KVM: PPC: Book3S HV: Add transactional memory
support", 2013-09-24) but wasn't.
Cc: stable@vger.kernel.org # v3.15+
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'drivers/irqchip/irq-mips-gic.c')
0 files changed, 0 insertions, 0 deletions