]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: selftests: Add regression tests for PRNO, KDSA and KMA crypto subfunctions
authorHariharan Mari <hari55@linux.ibm.com>
Fri, 23 Aug 2024 13:05:05 +0000 (15:05 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 7 Oct 2024 08:53:55 +0000 (08:53 +0000)
commitff4cafc585e7554063ae2f301da208559ff9418f
treea52d9e6cb27c3f29b673e475d378702070dee93d
parent2688d6814193f81b0b4f9704a44963ebd755182f
KVM: s390: selftests: Add regression tests for PRNO, KDSA and KMA crypto subfunctions

Extend the existing regression test framework for s390x CPU subfunctions
to include tests for the PRNO (Perform Random Number Operation), KDSA
(Compute Digital Signature Authentication) and KMA (Cipher Message with
Authentication) crypto functions.

The test procedure follows the established pattern:

1. Obtain KVM_S390_VM_CPU_MACHINE_SUBFUNC attribute for the VM.
2. Execute PRNO, KDSA and KMA instructions.
3. Compare KVM-reported results with direct instruction execution results.

Suggested-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Hariharan Mari <hari55@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Link: https://lore.kernel.org/r/20240823130947.38323-3-hari55@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20240823130947.38323-3-hari55@linux.ibm.com>
tools/testing/selftests/kvm/s390x/cpumodel_subfuncs_test.c