acrn-kernel/tools/testing/selftests/sgx
Reinette Chatre 6507cce561 selftests/sgx: Page removal stress test
Create enclave with additional heap that consumes all physical SGX
memory and then remove it.

Depending on the available SGX memory this test could take a
significant time to run (several minutes) as it (1) creates the
enclave, (2) changes the type of every page to be trimmed,
(3) enters the enclave once per page to run EACCEPT, before
(4) the pages are finally removed.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lkml.kernel.org/r/e7c6aa2ab30cb1c41e52b776958409c06970d168.1652137848.git.reinette.chatre@intel.com
2022-07-07 10:13:05 -07:00
..
.gitignore
Makefile selftests/sgx: Treat CC as one argument 2022-02-17 11:55:17 -08:00
call.S selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' 2021-06-15 16:21:23 -06:00
defines.h selftests/sgx: Introduce TCS initialization enclave operation 2022-07-07 10:13:04 -07:00
load.c selftests/sgx: Test complete changing of page type flow 2022-07-07 10:13:04 -07:00
main.c selftests/sgx: Page removal stress test 2022-07-07 10:13:05 -07:00
main.h selftests/sgx: Test complete changing of page type flow 2022-07-07 10:13:04 -07:00
sign_key.S
sign_key.pem
sigstruct.c selftests/sgx: Make data measurement for an enclave segment optional 2021-11-15 11:34:01 -08:00
test_encl.c selftests/sgx: Introduce TCS initialization enclave operation 2022-07-07 10:13:04 -07:00
test_encl.lds selftests/sgx: Refine the test enclave to have storage 2021-06-15 16:27:23 -06:00
test_encl_bootstrap.S selftests/sgx: Introduce dynamic entry point 2022-07-07 10:13:04 -07:00