All of lore.kernel.org
 help / color / mirror / Atom feed
* unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found
@ 2021-11-25 12:47 Yang Zhong
  2021-11-30 12:15 ` Yang Zhong
  0 siblings, 1 reply; 10+ messages in thread
From: Yang Zhong @ 2021-11-25 12:47 UTC (permalink / raw)
  To: pbonzini; +Cc: yang.zhong, qemu-devel

Hello Paolo,

Our customer used the Libvirt XML to start a SGX VM, but failed.

libvirt.libvirtError: internal error: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found

The XML file,
<qemu:commandline>
    <qemu:arg value="-cpu"/>
    <qemu:arg value="host,+sgx,+sgx-debug,+sgx-exinfo,+sgx-kss,+sgx-mode64,+sgx-provisionkey,+sgx-tokenkey,+sgx1,+sgx2,+sgxlc"/>
    <qemu:arg value="-object"/>
    <qemu:arg value="memory-backend-epc,id=mem1,size=16M,prealloc=on"/>
    <qemu:arg value="-M"/>
    <qemu:arg value="sgx-epc.0.memdev=mem1"/>
  </qemu:commandline>

The new compound property command should be located in /machine path,
which are different with old command '-sgx-epc id=epc1,memdev=mem1'.

I also tried this from Qemu monitor tool, 
(qemu) qom-list /machine
type (string)
kernel (string)
......
sgx-epc (SgxEPC)
......
sgx-epc[0] (child<memory-region>)
......

We can find sgx-epc from /machine list.

I am not familiar with Libvirt side, would you please suggest how to implement
this compound command in the XML file?  thanks a lot!

Regards,

Yang  




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-17  7:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 12:47 unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found Yang Zhong
2021-11-30 12:15 ` Yang Zhong
2022-01-17  2:53   ` Jarkko Sakkinen
2022-01-17  2:53     ` Jarkko Sakkinen
2022-01-17  6:09     ` Yang Zhong
2022-01-17  6:09       ` Yang Zhong
2022-01-17  6:58       ` Jarkko Sakkinen
2022-01-17  6:58         ` Jarkko Sakkinen
2022-01-17  6:56     ` Jarkko Sakkinen
2022-01-17  6:56       ` Jarkko Sakkinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.