Re: [PATCH v8 1/5] x86/tdx: Add TDX Guest attestation interface driver

From: Kai Huang
Date: Tue Jul 05 2022 - 18:31:44 EST


On Tue, 2022-07-05 at 14:21 -0700, Sathyanarayanan Kuppuswamy wrote:
> SGX is a related feature. It also uses IOCTL approach for enclave provisioning.
>
> arch/x86/kernel/cpu/sgx/ioctl.c

SGX isn't a good example here. The IOCTLs are used to create enclaves, but not
for attestation. SGX attestation relies on enclave itself to get/verify the
report, etc, so has no interaction with the kernel.