]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b857f5e9ab32b2d7edce4ccdcaa0c96b049bb73
tree1ccedfd005b40a3dd4da41bd4472af862ef9e549
parent7ffaf599cdf00ef67ee3bcc97d1f95a8ad11738b
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