x86/sgx: Add SGX2 ENCLS leaf definitions (EAUG, EMODPR and EMODT)
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 19 Mar 2021 07:23:05 +0000 (20:23 +1300)
committerBorislav Petkov <bp@suse.de>
Tue, 6 Apr 2021 07:43:42 +0000 (09:43 +0200)
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
arch/x86/include/asm/sgx.h

index 34f44238d1d1907b8acceb830cb195b32e7e2b4f..3b025afec0a7e5144531419b322ae703078364ce 100644 (file)
@@ -40,6 +40,9 @@ enum sgx_encls_function {
        EPA     = 0x0A,
        EWB     = 0x0B,
        ETRACK  = 0x0C,
+       EAUG    = 0x0D,
+       EMODPR  = 0x0E,
+       EMODT   = 0x0F,
 };
 
 /**