<?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 Those results refer to the in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149462#M2525</link>
    <description>&lt;P&gt;Those results refer to the values returned by the CPUID call (Section 37.7.2 of&amp;nbsp;https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-vol-3d-part-4-manual.pdf )&lt;/P&gt;&lt;P&gt;MaxEnclaveSize_Not64: the maximum supported enclave size is 2^(EDX[7:0]) bytes when not in 64-bit mode&lt;BR /&gt;MaxEnclaveSize_64: the maximum supported enclave size is 2^(EDX[15:8]) bytes when operating in 64- bit mode.&lt;/P&gt;&lt;P&gt;So the maximum Virtual Size of the enclave is 2^(0x1f) for 32bit and 2^(0x24) for 64bit enclaves.&lt;/P&gt;&lt;P&gt;For how much EPC, use Table 37-6. From the test program you linked, the line you are looking for is:&lt;/P&gt;&lt;P&gt;CPUID Leaf 12H, Sub-Leaf 2 of Intel SGX Capabilities&lt;STRONG&gt; (EAX=12H,ECX=2)&lt;/STRONG&gt;&lt;BR /&gt;eax: 80000001 ebx: 0 &lt;STRONG&gt;ecx&lt;/STRONG&gt;: 2000001 &lt;STRONG&gt;edx&lt;/STRONG&gt;: 0&lt;/P&gt;&lt;P&gt;On my system&amp;nbsp;&lt;BR /&gt;0x2000000 matches the 32 MB I set up on&amp;nbsp;this particular system. On a 128 MB system, you should get 0 for edx and for ecx:&lt;BR /&gt;0x‭800000#&amp;nbsp; (and you can ignore the last&amp;nbsp;hex value for the purposes of determining the size of EPC)&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 15:34:34 GMT</pubDate>
    <dc:creator>Francisco_C_Intel</dc:creator>
    <dc:date>2020-03-31T15:34:34Z</dc:date>
    <item>
      <title>Understanding MaxEnclaveSize</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149461#M2524</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with the SGX Enclave on Ubuntu 18.04 with an HP g5 Laptop with i5-6200U CPU. I have installed the linux driver and successfully built the SDK and run the sample enclave programs. However, I had a question regarding the size of the enclaves. I believe the term for the memory reserved for the Enclave is known as Processor Reserved Memory (PRM) and this is set in the BIOS. However, when I enabled SGX in the BIOS I saw only three options: Enabled, Disabled, and Software Controlled. I did see an option for changing the amount of PRM. Have the manufacturers not provided this option?&lt;/P&gt;&lt;P&gt;I assume that the PRM is 128 MB as this is the maximum size but how can I confirm this? Running the code found here&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ayeks/SGX-hardware/blob/master/test-sgx.c" target="_blank"&gt;https://github.com/ayeks/SGX-hardware/blob/master/test-sgx.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Gives the results:&lt;/P&gt;&lt;P&gt;MaxEnclaveSize_Not64: 1f&lt;BR /&gt;MaxEnclaveSize_64: 24&lt;/P&gt;&lt;P&gt;What do these numbers mean?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:52:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149461#M2524</guid>
      <dc:creator>WGall3</dc:creator>
      <dc:date>2020-03-27T15:52:01Z</dc:date>
    </item>
    <item>
      <title>Those results refer to the</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149462#M2525</link>
      <description>&lt;P&gt;Those results refer to the values returned by the CPUID call (Section 37.7.2 of&amp;nbsp;https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-vol-3d-part-4-manual.pdf )&lt;/P&gt;&lt;P&gt;MaxEnclaveSize_Not64: the maximum supported enclave size is 2^(EDX[7:0]) bytes when not in 64-bit mode&lt;BR /&gt;MaxEnclaveSize_64: the maximum supported enclave size is 2^(EDX[15:8]) bytes when operating in 64- bit mode.&lt;/P&gt;&lt;P&gt;So the maximum Virtual Size of the enclave is 2^(0x1f) for 32bit and 2^(0x24) for 64bit enclaves.&lt;/P&gt;&lt;P&gt;For how much EPC, use Table 37-6. From the test program you linked, the line you are looking for is:&lt;/P&gt;&lt;P&gt;CPUID Leaf 12H, Sub-Leaf 2 of Intel SGX Capabilities&lt;STRONG&gt; (EAX=12H,ECX=2)&lt;/STRONG&gt;&lt;BR /&gt;eax: 80000001 ebx: 0 &lt;STRONG&gt;ecx&lt;/STRONG&gt;: 2000001 &lt;STRONG&gt;edx&lt;/STRONG&gt;: 0&lt;/P&gt;&lt;P&gt;On my system&amp;nbsp;&lt;BR /&gt;0x2000000 matches the 32 MB I set up on&amp;nbsp;this particular system. On a 128 MB system, you should get 0 for edx and for ecx:&lt;BR /&gt;0x‭800000#&amp;nbsp; (and you can ignore the last&amp;nbsp;hex value for the purposes of determining the size of EPC)&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:34:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149462#M2525</guid>
      <dc:creator>Francisco_C_Intel</dc:creator>
      <dc:date>2020-03-31T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Francisco,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149463#M2526</link>
      <description>&lt;P&gt;Francisco,&lt;/P&gt;&lt;P&gt;Thank you for your reply. It answers my question quite clearly.&lt;/P&gt;&lt;P&gt;-Will&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:56:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Understanding-MaxEnclaveSize/m-p/1149463#M2526</guid>
      <dc:creator>WGall3</dc:creator>
      <dc:date>2020-03-31T16:56:27Z</dc:date>
    </item>
  </channel>
</rss>

