diff --git a/zconf/zcrypt/zcryptstats.8 b/zconf/zcrypt/zcryptstats.8 index 8c31c691..ef99809a 100644 --- a/zconf/zcrypt/zcryptstats.8 +++ b/zconf/zcrypt/zcryptstats.8 @@ -72,6 +72,11 @@ the parallel execution of cryptographic operations. Cryptographic performance measurement data might not be available when Linux is running as guest under z/VM or under KVM. \fBzcryptstats\fP then displays an error message and exits. +.PP +.B Note: +\fBzcryptstats\fP utilizes the device node \fB/dev/chsc\fP. When this device +node is not available, you might have to load kernel module \fBchsc_sch\fP using +\fBmodprobe chsc_sch\fP to make it available. . . . diff --git a/zconf/zcrypt/zcryptstats.c b/zconf/zcrypt/zcryptstats.c index 136d5ba5..1d2a6e97 100644 --- a/zconf/zcrypt/zcryptstats.c +++ b/zconf/zcrypt/zcryptstats.c @@ -2393,7 +2393,11 @@ int main(int argc, char *argv[]) g.chsc_fd = open(CHSC_DEVICE, O_RDWR); if (g.chsc_fd < 0) { + rc = errno; warnx("File '%s:' %s", CHSC_DEVICE, strerror(errno)); + if (rc == ENOENT) + warnx("You might have to load kernel module 'chsc_sch' " + "using 'modprobe chsc_sch'"); return EXIT_FAILURE; } pr_verbose("Device '%s' has been opened successfully", CHSC_DEVICE);