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)
commit6d0aaf5e0de00491de136f387ebed55604cedebe
tree83cefe4e290d8f2785b4f279e3176e5bea025501
parentb22f2d88e435cdada32581ca1f11b9806adf459a
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