qemu stuck at creating vm when enabling sgx feature

Host environment

  • Operating system: ubuntu22.04

  • OS/kernel version: 5.16.9

  • Architecture: x86

  • QEMU flavor: qemu-system-x86_64

  • QEMU version: 7.2.50

  • QEMU command line:

     sudo qemu-system-x86_64 --enable-kvm -nographic -m 2048 ubuntu.img -cdrom  ubuntu-20.04.5-live-server-amd64.iso -cpu host,+sgx-provisionkey -object memory-backend-epc,id=mem1,size=64M,prealloc=on -M sgx-epc.0.memdev=mem1,sgx-epc.0.node=0

Emulated/Virtualized environment

  • Operating system: ubuntu20.04
  • Architecture: x86

Description of problem

After execute the command line, qemu stucked.

image

After the info in the png, qemu clear the screen and then nothing happend.

Edited by Harry Potter