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

Running AMX instructions inside SGX Enclave

jk123
Beginner
722 Views

I am trying to execute an AMX instruction inside an SGX enclave. I am using RHEL 9.3. I have confirmed that I can run an AMX instruction outside of an enclave, but not inside it when initializing AMX outside of the enclave. Executing the enclaved code returns error code 0x1006. I can't reinitialize AMX inside the enclave because it requires a system call, and system calls are impossible inside an SGX enclave. Is there any way to run AMX inside an enclave? I have attached a minimal reproducible example.

It is based off the code here and here 

Labels (1)
0 Kudos
1 Solution
Scott_R_Intel
Moderator
707 Views

Hello.

 

Please see our latest SGX Developer Reference.  It talks about how to enable AMX in an enclave.


Regards.

View solution in original post

0 Kudos
1 Reply
Scott_R_Intel
Moderator
708 Views

Hello.

 

Please see our latest SGX Developer Reference.  It talks about how to enable AMX in an enclave.


Regards.

0 Kudos
Reply