diff options
| author | Sean Christopherson <[email protected]> | 2021-03-19 20:23:03 +1300 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2021-04-06 09:43:41 +0200 |
| commit | 8ca52cc38dc8fdcbdbd0c23eafb19db5e5f5c8d0 (patch) | |
| tree | e7cf15a948d3887436be1b74eb4c3a83bc1355fc /tools | |
| parent | faa7d3e6f3b983a28bf0f88f82dcb1c162e61105 (diff) | |
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 <[email protected]>
Co-developed-by: Kai Huang <[email protected]>
Signed-off-by: Kai Huang <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Jarkko Sakkinen <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Link: https://lkml.kernel.org/r/6bf47acd91ab4d709e66ad1692c7803e4c9063a0.1616136308.git.kai.huang@intel.com
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/testing/selftests/sgx/defines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/sgx/defines.h b/tools/testing/selftests/sgx/defines.h index 592c1ccf4576..0bd73428d2f3 100644 --- a/tools/testing/selftests/sgx/defines.h +++ b/tools/testing/selftests/sgx/defines.h @@ -14,7 +14,7 @@ #define __aligned(x) __attribute__((__aligned__(x))) #define __packed __attribute__((packed)) -#include "../../../../arch/x86/kernel/cpu/sgx/arch.h" +#include "../../../../arch/x86/include/asm/sgx.h" #include "../../../../arch/x86/include/asm/enclu.h" #include "../../../../arch/x86/include/uapi/asm/sgx.h" |