Re: [PATCH v4 4/5] x86/sgx: Allows ioctl PROVISION to execute before CREATE

2021-02-10 Thread Tianjia Zhang
On 2/3/21 5:57 AM, Jarkko Sakkinen wrote: On Mon, Feb 01, 2021 at 09:26:52PM +0800, Tianjia Zhang wrote: In the function sgx_create_enclave(), the direct assignment operation of attributes_mask determines that the ioctl PROVISION operation must be executed after the ioctl CREATE operation, wh

Re: [PATCH v4 4/5] x86/sgx: Allows ioctl PROVISION to execute before CREATE

2021-02-02 Thread Jarkko Sakkinen
On Mon, Feb 01, 2021 at 09:26:52PM +0800, Tianjia Zhang wrote: > In the function sgx_create_enclave(), the direct assignment > operation of attributes_mask determines that the ioctl PROVISION > operation must be executed after the ioctl CREATE operation, > which will limit the flexibility of sgx de

[PATCH v4 4/5] x86/sgx: Allows ioctl PROVISION to execute before CREATE

2021-02-01 Thread Tianjia Zhang
In the function sgx_create_enclave(), the direct assignment operation of attributes_mask determines that the ioctl PROVISION operation must be executed after the ioctl CREATE operation, which will limit the flexibility of sgx developers. This patch takes the assignment of attributes_mask from the