powerpc/pseries/vas: Integrate API with open/close windows
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:36:28 +0000 (13:36 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:57 +0000 (21:58 +1000)
commitb22f2d88e435cdada32581ca1f11b9806adf459a
tree8597a07538c6b445657d77b960ca738b39b65563
parentca77d48854177bb9749aef7329201f03b2382fbb
powerpc/pseries/vas: Integrate API with open/close windows

This patch adds VAS window allocatioa/close with the corresponding
hcalls. Also changes to integrate with the existing user space VAS
API and provide register/unregister functions to NX pseries driver.

The driver register function is used to create the user space
interface (/dev/crypto/nx-gzip) and unregister to remove this entry.

The user space process opens this device node and makes an ioctl
to allocate VAS window. The close interface is used to deallocate
window.

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/e8d956bace3f182c4d2e66e343ff37cb0391d1fd.camel@linux.ibm.com
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/vas.c