Building a kernel with the true random-number generator

6.10 LPAR mode z/VM guest KVM guest

Control the build options for the true random-number generator through the kernel configuration menu.

Kernel builders: This information is intended for those who want to build their own kernel. Be aware that both compiling your own kernel or recompiling an existing distribution usually means that you have to maintain your kernel yourself.
Figure 1. CPACF kernel configuration menu options for cryptographic operations

 Device drivers --->             
    ...
    Character devices --->       
       ...
       Hardware Random Number Generator Core support   (CONFIG_HW_RANDOM)
         - S390 True Random Number Generator support   (CONFIG_HW_RANDOM_S390)
       
CONFIG_HW_RANDOM_S390

This driver provides kernel-side support for the True Random Number Generator available as CPACF extension on modern s390 hardware platforms. To compile this driver as a module, choose M here: the module will be called s390_trng.