Skip to content
Permalink
Browse files Browse the repository at this point in the history
KVM: PPC: Book3S HV: Pull out TM state save/restore into separate pro…
…cedures

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 9d4d0bd ("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>
  • Loading branch information
paulusmack committed Jul 28, 2016
1 parent 912902c commit f024ee0
Showing 1 changed file with 237 additions and 212 deletions.

0 comments on commit f024ee0

Please sign in to comment.