OSDN Git Service

x86/sgx: Expose SGX architectural definitions to the kernel
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 19 Mar 2021 07:23:03 +0000 (20:23 +1300)
committerBorislav Petkov <bp@suse.de>
Tue, 6 Apr 2021 07:43:41 +0000 (09:43 +0200)
commit8ca52cc38dc8fdcbdbd0c23eafb19db5e5f5c8d0
treee7cf15a948d3887436be1b74eb4c3a83bc1355fc
parentfaa7d3e6f3b983a28bf0f88f82dcb1c162e61105
x86/sgx: Expose SGX architectural definitions to the kernel

Expose SGX architectural structures, as KVM will use many of the
architectural constants and structs to virtualize SGX.

Name the new header file as asm/sgx.h, rather than asm/sgx_arch.h, to
have single header to provide SGX facilities to share with other kernel
componments. Also update MAINTAINERS to include asm/sgx.h.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Co-developed-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Link: https://lkml.kernel.org/r/6bf47acd91ab4d709e66ad1692c7803e4c9063a0.1616136308.git.kai.huang@intel.com
MAINTAINERS
arch/x86/include/asm/sgx.h [moved from arch/x86/kernel/cpu/sgx/arch.h with 95% similarity]
arch/x86/kernel/cpu/sgx/encl.c
arch/x86/kernel/cpu/sgx/sgx.h
tools/testing/selftests/sgx/defines.h