intel / linux-sgx

Intel SGX for Linux*
https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html
Other
1.32k stars 542 forks source link

unable to execute QEMU command - SGX VM using libvirtd #768

Open AnandakumarNatarajan opened 2 years ago

AnandakumarNatarajan commented 2 years ago

Hello All,

Linux version 5.14.9-custom QEMU emulator version 6.2.0 (v6.2.0)

I am able to start a testvm using following commandline,

sudo qemu-system-x86_64 -nographic -enable-kvm -cpu host,+sgx -object memory-backend-epc,id=mem1,size=8M,prealloc=on -object mem0.memdev

But when I try the same with libvirt, I am getting this, error: internal error: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found

testvm.xml content: `

test 3d5bba5b-0b5b-4b2b-a425-171fe9b31140 4194304 4194304 1 hvm /usr/share/OVMF/OVMF_CODE.fd /var/lib/libvirt/qemu/nvram/testvm_VARS.fd qemu64 destroy restart restart /usr/local/bin/qemu-system-x86_64
` SGX virtualization document not updated for the latest qemu version. https://www.intel.com/content/www/us/en/developer/articles/technical/virtualizing-intel-software-guard-extensions-with-kvm-and-qemu.html
hukutu4 commented 1 year ago

Same with me. I haven't been able to find a solution yet