]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S 64: Minimise hcall handler calling convention differences
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:27 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:12 +0000 (22:12 +1000)
commitf76a62f2e08d04778dcd3c2c9c773ac5faef58d0
tree85fc9682460c9fa0ed029b707dbb6add13bd3913
parentb2d829797aeaca8615c0b1958519d4012d58d4eb
KVM: PPC: Book3S 64: Minimise hcall handler calling convention differences

This sets up the same calling convention from interrupt entry to
KVM interrupt handler for system calls as exists for other interrupt
types.

This is a better API, it uses a save area rather than SPR, and it has
more registers free to use. Using a single common API helps maintain
it, and it becomes easier to use in C in a later patch.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210528090752.3542186-8-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kvm/book3s_64_entry.S