Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1537 Discussions

My Ubuntu 22.04LTS machine with kernel 6.8 has no SGX drivers

alepvn33
Beginner
2,554 Views

Hello everyone,

I want to use Intel SGX in my machine with Ubuntu 22.04 LTS with kernel 6.8.0-65-generic.
However, the kernel seems to not have the in-kernel SGX drivers installed. Doing "ls /dev/sgx*" returns nothing, and no other sgx-related name appears in the list of /dev.

My machine supports SGX and FLC, and SGX is enabled in BIOS with the following settings:

Intel TXT: On
Memory Encryption: Single Key
Global Memory Integrity: Enabled
TME Encryption Bypass: Enabled
Intel SGX: On
SGX Package Info In-Band Access: Off
PRMRR Size: 2G
SGX QoS: Enables

Does anyone know what is happening and what I should try? 
Thanks in advance

0 Kudos
1 Reply
Scott_R_Intel
Moderator
2,522 Views

Hello.

 

Which CPU are you running on? There are certain requirements you have to meet to enable SGX, including memory population rules, that you may need to check.  We have these rules called out in our TDX Enabling Guide, which has the same requirements as SGX.

 

Hardware Selection - Intel® TDX Enabling Guide

 

Also, do you see any messages in dmesg?  sudo dmesg | grep -i sgx

And can you provide output from the cpuid utility:  cpuid -1 | grep -i sgx

 

Regards.

0 Kudos
Reply