]> 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)
commit7b15741768087d19ea1a501e09d2c2e9637115ce
tree1ccedfd005b40a3dd4da41bd4472af862ef9e549
parent55cf528b13bbfa58f588a1bc40d776ecf5e3b95d
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