Add an oversubscription test
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest8 patches 3 repliesIn review
- v38 patches 1 replySuperseded
- v24 patches 2 repliesSuperseded
v3 from the cover letter
* Reorganized the patch set into smaller pieces, and refactored the code so that the test enclave can be created inside each test case. Added a new test case unclobbered_vdso_oversubscribed that creates a large enough heap to fill all of the available SGX reserved memory (EPC).
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | x86/sgx: Add /sys/kernel/debug/x86/sgx_total_memDocumentation/ arch/ | +15 | 3 replies | |
| 2/8 | selftests/sgx: Assign source for each segmenttools/ tools/ tools/ | +8 | 0 replies | |
| 3/8 | selftests/sgx: Make data measurement for an enclave segment optionaltools/ tools/ tools/ | +10 | 0 replies | |
| 4/8 | selftests/sgx: Create a heap for the test enclavetools/ tools/ tools/ | +26 | 0 replies | |
| 5/8 | selftests/sgx: Dump segments and /proc/self/maps only on failuretools/ | +12 | 0 replies | |
| 6/8 | selftests/sgx: Encpsulate the test enclave creationtools/ | +26 | 0 replies | |
| 7/8 | selftests/sgx: Move setup_test_encl() to each TEST_F()tools/ | +15 | 0 replies | |
| 8/8 | selftests/sgx: Add a new kselftest: unclobbered_vdso_oversubscribedtools/ tools/ | +60 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Dave Hansen |
|---|---|
| 1/8 | A-b |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/8] Add an oversubscription test
The goal of these patches is to add a test case for a SGX reserved memory oversubscription, i.e. make sure that the page reclaimer and and the page fault handler are working correctly.
Change Log
==========
v3:
* Reorganized the patch set into smaller pieces, and refactored the code so that the test enclave can be created inside each test case. Added a new test case unclobbered_vdso_oversubscribed that creates a large enough heap to fill all of the available SGX reserved memory (EPC).
Jarkko Sakkinen (8):
x86/sgx: Add /sys/kernel/debug/x86/sgx_total_mem selftests/sgx: Assign source for each segment selftests/sgx: Make data measurement for an enclave segment optional selftests/sgx: Create a heap for the test enclave selftests/sgx: Dump segments and /proc/self/maps only on failure selftests/sgx: Encpsulate the test enclave creation selftests/sgx: Move setup_test_encl() to each TEST_F() selftests/sgx: Add a new kselftest: unclobbered_vdso_oversubscribed
Documentation/x86/sgx.rst | 6 ++ arch/x86/kernel/cpu/sgx/main.c | 10 +- tools/testing/selftests/sgx/load.c | 40 ++++++-- tools/testing/selftests/sgx/main.c | 123 +++++++++++++++++++----- tools/testing/selftests/sgx/main.h | 7 +- tools/testing/selftests/sgx/sigstruct.c | 12 ++- 6 files changed, 159 insertions(+), 39 deletions(-)
Signature · 1 line
2.32.0