[PATCH v3 0/8] Add an oversubscription test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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      | 129 ++++++++++++++++++++----
 tools/testing/selftests/sgx/main.h      |   7 +-
 tools/testing/selftests/sgx/sigstruct.c |  12 ++-
 6 files changed, 165 insertions(+), 39 deletions(-)

-- 
2.32.0




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux