]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/vas: Setup IRQ and fault handling
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:37:06 +0000 (13:37 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:57 +0000 (21:58 +1000)
commit4fce36104fdfec4a4ccf33671b0cf0de710c8a4b
tree83cefe4e290d8f2785b4f279e3176e5bea025501
parentd391ace9fc22b099e819e6b345f7998f9c7cb818
powerpc/pseries/vas: Setup IRQ and fault handling

NX generates an interrupt when sees a fault on the user space
buffer and the hypervisor forwards that interrupt to OS. Then
the kernel handles the interrupt by issuing H_GET_NX_FAULT hcall
to retrieve the fault CRB information.

This patch also adds changes to setup and free IRQ per each
window and also handles the fault by updating the CSB.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b8fc66dcb783d06a099a303e5cfc69087bb3357a.camel@linux.ibm.com
arch/powerpc/platforms/pseries/vas.c