]> Gentwo Git Trees - linux/.git/commit
x86/sgx: Define error codes for use by ENCLS[EUPDATESVN]
authorElena Reshetova <elena.reshetova@intel.com>
Thu, 16 Oct 2025 13:11:06 +0000 (16:11 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 16 Oct 2025 21:42:09 +0000 (14:42 -0700)
commit7b502832ee69274ce88faa5d64a339f8760b50bf
tree49e7675d4872b0cdc9cb599a26d6d5ab699231bf
parent6ffdb49101f023136a9a1fb0deb59eba73c306a3
x86/sgx: Define error codes for use by ENCLS[EUPDATESVN]

Add error codes for ENCLS[EUPDATESVN], then SGX CPUSVN update process can
know the execution state of EUPDATESVN and notify userspace.

EUPDATESVN will be called when no active SGX users is guaranteed. Only add
the error codes that can legally happen. E.g., it could also fail due to
"SGX not ready" when there's SGX users but it wouldn't happen in this
implementation.

Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Nataliia Bondarevska <bondarn@google.com>
arch/x86/include/asm/sgx.h