Re: [PATCH v2 2/5] KVM: s390: selftests: Add regression tests for PRNO, KDSA and KMA crypto subfunctions

Christoph Schlameuss
2024-08-21T07:21:43Z

On Tue Aug 20, 2024 at 8:48 AM CEST, Hariharan Mari wrote:
> 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>

LGTM

Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>

> ---
> .../kvm/s390x/cpumodel_subfuncs_test.c | 51 +++++++++++++++++++
> 1 file changed, 51 insertions(+) …