]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/sgx: Provide per-op parameter structs for the test enclave
authorJarkko Sakkinen <jarkko@kernel.org>
Mon, 15 Nov 2021 18:35:22 +0000 (10:35 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Mon, 15 Nov 2021 19:34:10 +0000 (11:34 -0800)
commit2a7b65b7139d536b540de8c2701bb3cd426f7331
treeaa471aa03c45d7c989b4d60001bf9d3f43150917
parentdac71fb9bcc7c0cb56ccbc82b339bf9bebeb91d2
selftests/sgx: Provide per-op parameter structs for the test enclave

To add more operations to the test enclave, the protocol needs to allow
to have operations with varying parameters. Create a separate parameter
struct for each existing operation, with the shared parameters in struct
encl_op_header.

[reinette: rebased to apply on top of oversubscription test series]
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/f9a4a8c436b538003b8ebddaa66083992053cef1.1636997631.git.reinette.chatre@intel.com
tools/testing/selftests/sgx/defines.h
tools/testing/selftests/sgx/main.c
tools/testing/selftests/sgx/test_encl.c