]> 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)
commit564649ce845cc50e7aac54281bfdcbae235d9f4f
tree83cefe4e290d8f2785b4f279e3176e5bea025501
parentdc0943dcd3cd14d304f6a2bb462fc505a1bf5e6a
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