Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1098 Discussions

what are the ideal steps for running "invd" in SMP system?

New Contributor I


I'm trying to run "invd" instruction on SMP system. I'm on Linux. I have a kernel module where I'm trying to run this "invd" instruction like the following,

asm ("wbinvd");
asm ("invd");

However, upon running the instruction I'm getting 

general protection fault: 0000 [#1] SMP PTI

I have also boot my kernel with no SMP support but the same error persists. This makes me think that maybe there are some other configurations that I need to setup before running this instruction. I was wondering if I can get some help regarding this, like what is the ideal setup for running "indv"     


Thank you 

~Shariful Alam

0 Kudos
1 Reply
New Contributor I

My SGX was enabled. By disabling it from the BIOS, I was able to run the "invd" instruction with no SMP support.  

0 Kudos