lkml.org 
[lkml]   [2022]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] x86/sgx: Allow enclaves to use Asynchrounous Exit Notification
From
On 7/14/22 06:19, Haitao Huang wrote:
>
> I think you need add this change in arch/x86/kernel/cpu/sgx/ioctl.c,
> inside sgx_encl_create function:
>
> -    encl->attributes_mask = SGX_ATTR_DEBUG | SGX_ATTR_MODE64BIT |
> SGX_ATTR_KSS;
> +    encl->attributes_mask = SGX_ATTR_DEBUG | SGX_ATTR_MODE64BIT |
> SGX_ATTR_KSS | SGX_ATTR_ASYNC_EXIT_NOTIFY;
>
> Otherwise, EINIT ioctl fails with this new attribute set in enclave secs.

Makes sense. I'll add it there.

I also just realized we need to update arch/x86/kvm/cpuid.c as well. It
keeps a complete list of guest-available SGX attributes.

\
 
 \ /
  Last update: 2022-07-19 19:55    [W:0.105 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site