[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <93960610-d7ff-8c7f-16ae-61191e6ed377@intel.com>
Date: Tue, 19 Jul 2022 10:53:24 -0700
From: Dave Hansen <dave.hansen@...el.com>
To: Haitao Huang <haitao.huang@...ux.intel.com>,
linux-kernel@...r.kernel.org,
Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Jarkko Sakkinen <jarkko@...nel.org>,
Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
x86@...nel.org, "H. Peter Anvin" <hpa@...or.com>,
linux-sgx@...r.kernel.org, Sean Christopherson <seanjc@...gle.com>,
"Huang, Kai" <kai.huang@...el.com>
Subject: Re: [PATCH] x86/sgx: Allow enclaves to use Asynchrounous Exit
Notification
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.
Powered by blists - more mailing lists