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

Using SGX in Virtual Machines

clinton_b_
Beginner
3,976 Views

In the following article ( http://wccftech.com/amd-zen-encryption-sme-sev-hw-based-sha/ ), it claims that SGX "cannot be virtualized". 

  1. Can SGX-based software run in a virtual machine?  
  2. If so, can I run SGX-based software(s) in different virtual machines on the same host concurrently?
  3. Furthermore, If SGX-based software can run in a virtual machine, which virtual machines can it run in?  VirtualBox? VMWare Workstation? Xen?

Thanks,

Clinton

0 Kudos
6 Replies
ddon
Beginner
3,976 Views

I'm pretty sure SGX cannot currently be run from within a VM.

0 Kudos
clinton_b_
Beginner
3,976 Views

don b. wrote:

I'm pretty sure SGX cannot currently be run from within a VM.

What do you mean by currently?  

Is it that VM's do not support SGX today? or  SGX cannot run in a VM at all? 

0 Kudos
ddon
Beginner
3,976 Views

Virtualization software must be able to support, i.e., virtualize the SGX hardware features (extensions to the IA-32 instruction set). As far as I know, no virtualization software (VMware, VirtualBox, Xen, etc) has virtualized SGX..... yet. Until that happens, you won't be able to run SGX in a VM.

0 Kudos
Francisco_C_Intel
3,976 Views

Don B. is correct.

If you go to https://01.org/intel-softwareguard-extensions , you will see a link to https://01.org/intel-software-guard-extensions/sgx-virtualization. You should be able to find more details there.

0 Kudos
Thomas_L_5
Beginner
3,976 Views

Thank you everyone for the information!

0 Kudos
Motta__Gilson
Beginner
3,976 Views

As of right now, there is SGX virtualization is available for KVM and Xen.

0 Kudos
Reply