KVM: PPC: Book3S: Change interrupt call to reduce scratch space use on HV
authorNicholas Piggin <npiggin@gmail.com>
Wed, 21 Dec 2016 18:29:25 +0000 (04:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 27 Jan 2017 04:41:20 +0000 (15:41 +1100)
commitd3918e7fd4a27564f93ec46d0359a9739c5deb8d
tree92569d562aaba206de93259e989c0e9bac8a566e
parent49def1853334396f948dcb4cedb9347abb318df5
KVM: PPC: Book3S: Change interrupt call to reduce scratch space use on HV

Change the calling convention to put the trap number together with
CR in two halves of r12, which frees up HSTATE_SCRATCH2 in the HV
handler.

The 64-bit PR handler entry translates the calling convention back
to match the previous call convention (i.e., shared with 32-bit), for
simplicity.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/kvm/book3s_segment.S