• Harald Freudenberger's avatar
    s390/pkey: Rework and split PKEY kernel module code · 86fbf5e2
    Harald Freudenberger authored
    This is a huge rework of all the pkey kernel module code.
    The goal is to split the code into individual parts with
    a dedicated calling interface:
    - move all the sysfs related code into pkey_sysfs.c
    - all the CCA related code goes to pkey_cca.c
    - the EP11 stuff has been moved to pkey_ep11.c
    - the PCKMO related code is now in pkey_pckmo.c
    
    The CCA, EP11 and PCKMO code may be seen as "handlers" with
    a similar calling interface. The new header file pkey_base.h
    declares this calling interface. The remaining code in
    pkey_api.c handles the ioctl, the pkey module things and the
    "handler" independent code on top of the calling interface
    invoking the handlers.
    
    This regrouping of the code will be the base for a real
    pkey kernel module split into a pkey base module which acts
    as a dispatcher and handler modules providing their service.
    Signed-off-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
    Reviewed-by: default avatarHolger Dengler <dengler@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    86fbf5e2
zcrypt_ep11misc.h 5.58 KB