x86/sgx: Add SGX architectural data structures
authorJarkko Sakkinen <jarkko@kernel.org>
Thu, 12 Nov 2020 22:01:12 +0000 (00:01 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 17 Nov 2020 13:36:12 +0000 (14:36 +0100)
commit70d3b8ddcd20d3c859676f56c43c7b2360c70266
tree4c891c2ebad859abfa5c09f67743a0b8bb4ac9ec
parent09162bc32c880a791c6c0668ce0745cf7958f576
x86/sgx: Add SGX architectural data structures

Define the SGX architectural data structures used by various SGX
functions. This is not an exhaustive representation of all SGX data
structures but only those needed by the kernel.

The goal is to sequester hardware structures in "sgx/arch.h" and keep
them separate from kernel-internal or uapi structures.

The data structures are described in Intel SDM section 37.6.

Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Jethro Beekman <jethro@fortanix.com>
Link: https://lkml.kernel.org/r/20201112220135.165028-2-jarkko@kernel.org
arch/x86/kernel/cpu/sgx/arch.h [new file with mode: 0644]