summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/sgx.h
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2021-03-19 20:23:05 +1300
committerBorislav Petkov <bp@suse.de>2021-04-06 09:43:42 +0200
commit32ddda8e445df3de477db14d386fb3518042224a (patch)
tree5aa9fc912ff74cb8137e2e7bbdf7547c99e97f62 /arch/x86/include/asm/sgx.h
parent9c55c78a73ce6e62a1d46ba6e4f242c23c29b812 (diff)
downloadlinux-stable-32ddda8e445df3de477db14d386fb3518042224a.tar.gz
linux-stable-32ddda8e445df3de477db14d386fb3518042224a.tar.bz2
linux-stable-32ddda8e445df3de477db14d386fb3518042224a.zip
x86/sgx: Add SGX2 ENCLS leaf definitions (EAUG, EMODPR and EMODT)
Define the ENCLS leafs that are available with SGX2, also referred to as Enclave Dynamic Memory Management (EDMM). The leafs will be used by KVM to conditionally expose SGX2 capabilities to guests. Signed-off-by: Sean Christopherson <sean.j.christopherson@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/5f0970c251ebcc6d5add132f0d750cc753b7060f.1616136308.git.kai.huang@intel.com
Diffstat (limited to 'arch/x86/include/asm/sgx.h')
-rw-r--r--arch/x86/include/asm/sgx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/sgx.h b/arch/x86/include/asm/sgx.h
index 34f44238d1d1..3b025afec0a7 100644
--- a/arch/x86/include/asm/sgx.h
+++ b/arch/x86/include/asm/sgx.h
@@ -40,6 +40,9 @@ enum sgx_encls_function {
EPA = 0x0A,
EWB = 0x0B,
ETRACK = 0x0C,
+ EAUG = 0x0D,
+ EMODPR = 0x0E,
+ EMODT = 0x0F,
};
/**