Re: [PATCH v12 3/5] x86/sgx: Define error codes for use by ENCLS[EUPDATESVN]

From: Huang, Kai
Date: Mon Aug 11 2025 - 06:24:08 EST


On Mon, 2025-08-11 at 12:06 +0300, Elena Reshetova wrote:
> 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.
>
> Reviewed-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
> Signed-off-by: Elena Reshetova <elena.reshetova@xxxxxxxxx>
>

Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>