On Fri, Mar 20, 2020 at 07:52:17PM +0200, Jarkko Sakkinen wrote: > On Fri, Mar 20, 2020 at 07:47:16PM +0200, Jarkko Sakkinen wrote: > > Move selftest under the top level selftests directory so that we don't > > need to clutter x86/Makefile. The changes made for x86/Makefile caused > > also issues with packaging the selftests. Finally, SGX assets need their > > own tailored compilation environment. > > > > With this change BuildRoot nicely packages both standard x86 selftests > > and our SGX test. > > > > Cc: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> > > Promise that this my last update to selftests. Just wanted to hammer > these quickly to cause minimum amount of distraction with the other > patch set. Otherwise, would be very hard to focus on reviewing those > chages. The changes I've done I think are no brainers. That's why I > don't hold for long before merging. Merged: # ./test_sgx SUCCESS Also: # ls sgx encl.bin test_sgx # ls x86 check_initial_reg_state_64 syscall_arg_fault_64 fsgsbase_64 syscall_nt_64 ioperm_64 syscall_numbering_64 iopl_64 sysret_rip_64 mov_ss_trap_64 sysret_ss_attrs_64 protection_keys_64 test_mremap_vdso_64 sigreturn_64 test_vdso_64 single_step_syscall_64 test_vsyscall_64 /Jarkko