]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c9da9384b84a43245165e1265505690014ce412
tree92569d562aaba206de93259e989c0e9bac8a566e
parent621807efa0bb8042b7eec9d41f9196ee9fa4388b
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