]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/64: Allow for relocation-on interrupts from guest to host
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 30 Jan 2017 10:21:40 +0000 (21:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 08:11:46 +0000 (19:11 +1100)
commitbc3551257af837fc603d295e59f9e32953525b98
tree5e3ffd0f0d13d04d2568895ed913f971e77f7ea1
parent16ed141677c5a1a796408e74ccd0a6f6554c3f21
powerpc/64: Allow for relocation-on interrupts from guest to host

With host and guest both using radix translation, it is feasible
for the host to take interrupts that come from the guest with
relocation on, and that is in fact what the POWER9 hardware will
do when LPCR[AIL] = 3.  All such interrupts use HSRR0/1 not SRR0/1
except for system call with LEV=1 (hcall).

Therefore this adds the KVM tests to the _HV variants of the
relocation-on interrupt handlers, and adds the KVM test to the
relocation-on system call entry point.

We also instantiate the relocation-on versions of the hypervisor
data storage and instruction interrupt handlers, since these can
occur with relocation on in radix guests.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/kernel/exceptions-64s.S