intel / intel/confidential-computing.sgx

unable to execute QEMU command - SGX VM using libvirtd

Open
#768 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.