KVM: PPC: Book3S HV: Extract PMU save/restore operations as C-callable functions
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 8 Oct 2018 05:30:51 +0000 (16:30 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Oct 2018 05:04:27 +0000 (16:04 +1100)
commit41f4e631daf80d16d818ac17c4144bd5b9a11f33
tree1ccedfd005b40a3dd4da41bd4472af862ef9e549
parentf7035ce9f1dfb1042c4acedf5cca6f9af395f110
KVM: PPC: Book3S HV: Extract PMU save/restore operations as C-callable functions

This pulls out the assembler code that is responsible for saving and
restoring the PMU state for the host and guest into separate functions
so they can be used from an alternate entry path.  The calling
convention is made compatible with C.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/kvm/book3s_hv_interrupts.S
arch/powerpc/kvm/book3s_hv_rmhandlers.S