Re: [PATCH v15 23/23] x86/sgx: Driver documentation

From: Dave Hansen
Date: Wed Nov 07 2018 - 12:09:40 EST


On 11/7/18 8:30 AM, Jarkko Sakkinen wrote:
>> Does this code run when I type "make kselftest"? If not, I think we
>> should rectify that.
> No, it doesn't. It is just my backup for the non-SDK user space code
> that I've made that I will use to fork my user space SGX projects in
> the future.
>
> I can work-out a selftest (and provide a new patch in the series) but
> I'm still wondering what the enclave should do. I would suggest that
> we start with an enclave that does just EEXIT and nothing else.

Yeah, that's a start. But, a good selftest would include things like
faults and error conditions.