<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Repost - Please update the Intel SGX VM document in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346235#M5079</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;Linux version 5.14.9-custom&lt;BR /&gt;QEMU emulator version 6.2.0 (v6.2.0)&lt;/P&gt;
&lt;P&gt;I am able to start a testvm using following commandline,&lt;/P&gt;
&lt;P&gt;`sudo qemu-system-x86_64 -nographic -enable-kvm -cpu host,+sgx -object memory-backend-epc,id=mem1,size=8M,prealloc=on -object mem0.memdev&lt;BR /&gt;`&lt;/P&gt;
&lt;P&gt;But when I try the same with libvirt, I am getting this,&lt;BR /&gt;`error: internal error: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found&lt;BR /&gt;`&lt;/P&gt;
&lt;P&gt;testvm.xml content:&lt;BR /&gt;`&amp;lt;domain type='kvm' xmlns:qemu='&lt;A href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank"&gt;http://libvirt.org/schemas/domain/qemu/1.0&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;test&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;uuid&amp;gt;3d5bba5b-0b5b-4b2b-a425-171fe9b31140&amp;lt;/uuid&amp;gt;&lt;BR /&gt;&amp;lt;memory unit='KiB'&amp;gt;4194304&amp;lt;/memory&amp;gt;&lt;BR /&gt;&amp;lt;currentMemory unit='KiB'&amp;gt;4194304&amp;lt;/currentMemory&amp;gt;&lt;BR /&gt;&amp;lt;vcpu placement='static'&amp;gt;1&amp;lt;/vcpu&amp;gt;&lt;BR /&gt;&amp;lt;os&amp;gt;&lt;BR /&gt;&amp;lt;type arch='x86_64' machine='pc-i440fx-6.2'&amp;gt;hvm&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;loader readonly='yes' type='pflash'&amp;gt;/usr/share/OVMF/OVMF_CODE.fd&amp;lt;/loader&amp;gt;&lt;BR /&gt;&amp;lt;nvram&amp;gt;/var/lib/libvirt/qemu/nvram/testvm_VARS.fd&amp;lt;/nvram&amp;gt;&lt;BR /&gt;&amp;lt;boot dev='hd'/&amp;gt;&lt;BR /&gt;&amp;lt;/os&amp;gt;&lt;BR /&gt;&amp;lt;features&amp;gt;&lt;BR /&gt;&amp;lt;acpi/&amp;gt;&lt;BR /&gt;&amp;lt;apic/&amp;gt;&lt;BR /&gt;&amp;lt;pae/&amp;gt;&lt;BR /&gt;&amp;lt;/features&amp;gt;&lt;BR /&gt;&amp;lt;cpu mode='custom' match='exact' check='none'&amp;gt;&lt;BR /&gt;&amp;lt;model fallback='forbid'&amp;gt;qemu64&amp;lt;/model&amp;gt;&lt;BR /&gt;&amp;lt;/cpu&amp;gt;&lt;BR /&gt;&amp;lt;clock offset='utc'/&amp;gt;&lt;BR /&gt;&amp;lt;on_poweroff&amp;gt;destroy&amp;lt;/on_poweroff&amp;gt;&lt;BR /&gt;&amp;lt;on_reboot&amp;gt;restart&amp;lt;/on_reboot&amp;gt;&lt;BR /&gt;&amp;lt;on_crash&amp;gt;restart&amp;lt;/on_crash&amp;gt;&lt;BR /&gt;&amp;lt;devices&amp;gt;&lt;BR /&gt;&amp;lt;emulator&amp;gt;/usr/local/bin/qemu-system-x86_64&amp;lt;/emulator&amp;gt;&lt;BR /&gt;&amp;lt;disk type='file' device='disk'&amp;gt;&lt;BR /&gt;&amp;lt;driver name='qemu' type='qcow2' cache='none' io='threads'/&amp;gt;&lt;BR /&gt;&amp;lt;source file='/home/sas/testvm.qcow2'/&amp;gt;&lt;BR /&gt;&amp;lt;target dev='vda' bus='virtio'/&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/&amp;gt;&lt;BR /&gt;&amp;lt;/disk&amp;gt;&lt;BR /&gt;&amp;lt;controller type='ide' index='0'&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/&amp;gt;&lt;BR /&gt;&amp;lt;/controller&amp;gt;&lt;BR /&gt;&amp;lt;controller type='usb' index='0' model='piix3-uhci'&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/&amp;gt;&lt;BR /&gt;&amp;lt;/controller&amp;gt;&lt;BR /&gt;&amp;lt;controller type='pci' index='0' model='pci-root'/&amp;gt;&lt;BR /&gt;&amp;lt;input type='mouse' bus='ps2'/&amp;gt;&lt;BR /&gt;&amp;lt;input type='keyboard' bus='ps2'/&amp;gt;&lt;BR /&gt;&amp;lt;memballoon model='virtio'&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/&amp;gt;&lt;BR /&gt;&amp;lt;/memballoon&amp;gt;&lt;BR /&gt;&amp;lt;/devices&amp;gt;&lt;BR /&gt;&amp;lt;qemu:commandline&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='-cpu'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='host,+sgx,+sgxlc'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='-object'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='memory-backend-epc,id=mem1,size=8M,prealloc=on'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='-machine'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='sgx-epc.0.memdev=mem1'/&amp;gt;&lt;BR /&gt;&amp;lt;/qemu:commandline&amp;gt;&lt;BR /&gt;&amp;lt;/domain&amp;gt;&lt;BR /&gt;`&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SGX virtualization document not updated for the latest qemu version. &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/virtualizing-intel-software-guard-extensions-with-kvm-and-qemu.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/virtualizing-intel-software-guard-extensions-with-kvm-and-qemu.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 11:13:38 GMT</pubDate>
    <dc:creator>Anandakumar</dc:creator>
    <dc:date>2021-12-23T11:13:38Z</dc:date>
    <item>
      <title>Repost - Please update the Intel SGX VM document</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1345955#M5076</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am posting this again because no updates for past 20 days.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-Software-Guard-Extensions/Please-update-the-Intel-SGX-VM-document/m-p/1340504#M5021" target="_blank"&gt;https://community.intel.com/t5/Intel-Software-Guard-Extensions/Please-update-the-Intel-SGX-VM-document/m-p/1340504#M5021&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/virtualizing-intel-software-gua...

 

The above document has steps to install QEMU from https://github.com/intel/qemu-sgx. 

Now the official QEMU repo has included the intel SGX changes from version 6.1.50 it seems. 

There are few differences in VM flags and configuration in new versions.

ex: -sgx-epc flag is not supported in the new version.

 

So please do update the documentation with proper vm xml configurations for new QEMU version.&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 10:59:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1345955#M5076</guid>
      <dc:creator>Anandakumar</dc:creator>
      <dc:date>2021-12-22T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Repost - Please update the Intel SGX VM document</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346235#M5079</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;Linux version 5.14.9-custom&lt;BR /&gt;QEMU emulator version 6.2.0 (v6.2.0)&lt;/P&gt;
&lt;P&gt;I am able to start a testvm using following commandline,&lt;/P&gt;
&lt;P&gt;`sudo qemu-system-x86_64 -nographic -enable-kvm -cpu host,+sgx -object memory-backend-epc,id=mem1,size=8M,prealloc=on -object mem0.memdev&lt;BR /&gt;`&lt;/P&gt;
&lt;P&gt;But when I try the same with libvirt, I am getting this,&lt;BR /&gt;`error: internal error: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found&lt;BR /&gt;`&lt;/P&gt;
&lt;P&gt;testvm.xml content:&lt;BR /&gt;`&amp;lt;domain type='kvm' xmlns:qemu='&lt;A href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank"&gt;http://libvirt.org/schemas/domain/qemu/1.0&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;test&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;uuid&amp;gt;3d5bba5b-0b5b-4b2b-a425-171fe9b31140&amp;lt;/uuid&amp;gt;&lt;BR /&gt;&amp;lt;memory unit='KiB'&amp;gt;4194304&amp;lt;/memory&amp;gt;&lt;BR /&gt;&amp;lt;currentMemory unit='KiB'&amp;gt;4194304&amp;lt;/currentMemory&amp;gt;&lt;BR /&gt;&amp;lt;vcpu placement='static'&amp;gt;1&amp;lt;/vcpu&amp;gt;&lt;BR /&gt;&amp;lt;os&amp;gt;&lt;BR /&gt;&amp;lt;type arch='x86_64' machine='pc-i440fx-6.2'&amp;gt;hvm&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;loader readonly='yes' type='pflash'&amp;gt;/usr/share/OVMF/OVMF_CODE.fd&amp;lt;/loader&amp;gt;&lt;BR /&gt;&amp;lt;nvram&amp;gt;/var/lib/libvirt/qemu/nvram/testvm_VARS.fd&amp;lt;/nvram&amp;gt;&lt;BR /&gt;&amp;lt;boot dev='hd'/&amp;gt;&lt;BR /&gt;&amp;lt;/os&amp;gt;&lt;BR /&gt;&amp;lt;features&amp;gt;&lt;BR /&gt;&amp;lt;acpi/&amp;gt;&lt;BR /&gt;&amp;lt;apic/&amp;gt;&lt;BR /&gt;&amp;lt;pae/&amp;gt;&lt;BR /&gt;&amp;lt;/features&amp;gt;&lt;BR /&gt;&amp;lt;cpu mode='custom' match='exact' check='none'&amp;gt;&lt;BR /&gt;&amp;lt;model fallback='forbid'&amp;gt;qemu64&amp;lt;/model&amp;gt;&lt;BR /&gt;&amp;lt;/cpu&amp;gt;&lt;BR /&gt;&amp;lt;clock offset='utc'/&amp;gt;&lt;BR /&gt;&amp;lt;on_poweroff&amp;gt;destroy&amp;lt;/on_poweroff&amp;gt;&lt;BR /&gt;&amp;lt;on_reboot&amp;gt;restart&amp;lt;/on_reboot&amp;gt;&lt;BR /&gt;&amp;lt;on_crash&amp;gt;restart&amp;lt;/on_crash&amp;gt;&lt;BR /&gt;&amp;lt;devices&amp;gt;&lt;BR /&gt;&amp;lt;emulator&amp;gt;/usr/local/bin/qemu-system-x86_64&amp;lt;/emulator&amp;gt;&lt;BR /&gt;&amp;lt;disk type='file' device='disk'&amp;gt;&lt;BR /&gt;&amp;lt;driver name='qemu' type='qcow2' cache='none' io='threads'/&amp;gt;&lt;BR /&gt;&amp;lt;source file='/home/sas/testvm.qcow2'/&amp;gt;&lt;BR /&gt;&amp;lt;target dev='vda' bus='virtio'/&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/&amp;gt;&lt;BR /&gt;&amp;lt;/disk&amp;gt;&lt;BR /&gt;&amp;lt;controller type='ide' index='0'&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/&amp;gt;&lt;BR /&gt;&amp;lt;/controller&amp;gt;&lt;BR /&gt;&amp;lt;controller type='usb' index='0' model='piix3-uhci'&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/&amp;gt;&lt;BR /&gt;&amp;lt;/controller&amp;gt;&lt;BR /&gt;&amp;lt;controller type='pci' index='0' model='pci-root'/&amp;gt;&lt;BR /&gt;&amp;lt;input type='mouse' bus='ps2'/&amp;gt;&lt;BR /&gt;&amp;lt;input type='keyboard' bus='ps2'/&amp;gt;&lt;BR /&gt;&amp;lt;memballoon model='virtio'&amp;gt;&lt;BR /&gt;&amp;lt;address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/&amp;gt;&lt;BR /&gt;&amp;lt;/memballoon&amp;gt;&lt;BR /&gt;&amp;lt;/devices&amp;gt;&lt;BR /&gt;&amp;lt;qemu:commandline&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='-cpu'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='host,+sgx,+sgxlc'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='-object'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='memory-backend-epc,id=mem1,size=8M,prealloc=on'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='-machine'/&amp;gt;&lt;BR /&gt;&amp;lt;qemu:arg value='sgx-epc.0.memdev=mem1'/&amp;gt;&lt;BR /&gt;&amp;lt;/qemu:commandline&amp;gt;&lt;BR /&gt;&amp;lt;/domain&amp;gt;&lt;BR /&gt;`&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SGX virtualization document not updated for the latest qemu version. &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/virtualizing-intel-software-guard-extensions-with-kvm-and-qemu.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/virtualizing-intel-software-guard-extensions-with-kvm-and-qemu.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 11:13:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346235#M5079</guid>
      <dc:creator>Anandakumar</dc:creator>
      <dc:date>2021-12-23T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re:Repost - Please update the Intel SGX VM document</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346304#M5080</link>
      <description>&lt;P&gt;Thanks for your inquiry.  I will pass it along to engineering, however, due to the holidays we will probably not get back to you until early January.  &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:13:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346304#M5080</guid>
      <dc:creator>ChrisB_Intel</dc:creator>
      <dc:date>2021-12-23T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Repost - Please update the Intel SGX VM document</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346534#M5082</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below patch working fine.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://lore.kernel.org/qemu-devel/20211130121536.GA32686@yangzhon-Virtual/" target="_blank"&gt;https://lore.kernel.org/qemu-devel/20211130121536.GA32686@yangzhon-Virtual/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 16:28:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Repost-Please-update-the-Intel-SGX-VM-document/m-p/1346534#M5082</guid>
      <dc:creator>Anandakumar</dc:creator>
      <dc:date>2021-12-24T16:28:50Z</dc:date>
    </item>
  </channel>
</rss>

