x86/sgx: Add SGX_IOC_ENCLAVE_CREATE
mainline inclusion from mainline-v5.11-rc1 commit 888d2491 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4SIGI CVE: NA -------------------------------- Add an ioctl() that performs the ECREATE function of the ENCLS instruction, which creates an SGX Enclave Control Structure (SECS). Although the SECS is an in-memory data structure, it is present in enclave memory and is not directly accessible by software. Intel-SIG: commit 888d2491 x86/sgx: Add SGX_IOC_ENCLAVE_CREATE Backport for SGX Foundations support Co-developed-by: NSean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: NSean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: NJarkko Sakkinen <jarkko@kernel.org> Signed-off-by: NBorislav Petkov <bp@suse.de> Tested-by: NJethro Beekman <jethro@fortanix.com> Link: https://lkml.kernel.org/r/20201112220135.165028-13-jarkko@kernel.org Signed-off-by: Fan Du <fan.du@intel.com> #openEuler_contributor Signed-off-by: NLaibin Qiu <qiulaibin@huawei.com> Reviewed-by: NBamvor Zhang <bamvor.zhang@suse.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
arch/x86/include/uapi/asm/sgx.h
0 → 100644
arch/x86/kernel/cpu/sgx/ioctl.c
0 → 100644
想要评论请 注册 或 登录