<?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 On Windows you are limited to in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079893#M561</link>
    <description>&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="font-size:10.5pt;font-family:&amp;quot;Helvetica&amp;quot;,sans-serif;
color:#666666"&gt;On Windows you are limited to the size of the enclave page cache, which is somewhere around 90 MB. The EPC is part of the processor reserved memory that is used by SGX, and is limited in the BIOS. The reason it's limited is because this memory is not available for use by other applications (or the OS) once SGX is enabled. Because there is no support for paging in Windows, you can't allocate more memory than this. All active enclaves have to fit within the EPC.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Helvetica, sans-serif; font-size: 10.5pt;"&gt;On Linux there is support for paging so enclaves are not limited to the size of the EPC. They can theoretically consume all the memory and virtual memory available to the system (minus the needs of the OS).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Helvetica, sans-serif; font-size: 10.5pt;"&gt;-Surenthar&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="font-size:10.5pt;font-family:&amp;quot;Helvetica&amp;quot;,sans-serif;
color:#666666"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2016 07:25:41 GMT</pubDate>
    <dc:creator>Surenthar_S_Intel</dc:creator>
    <dc:date>2016-11-10T07:25:41Z</dc:date>
    <item>
      <title>Intel SGX Enclave Virtual Memory Limit</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079890#M558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I wanted to inquire whether there is a maximum limit set on the virtual memory that can be allocated to an enclave? If yes, can you please tell me what it is and the reason for it?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Adil&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 20:17:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079890#M558</guid>
      <dc:creator>AAhma10</dc:creator>
      <dc:date>2016-11-08T20:17:47Z</dc:date>
    </item>
    <item>
      <title>The 6th generation core</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079891#M559</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;The 6th generation core processors that support SGX only support the v1.0 instruction set. The addition functionality in the v2 set are not yet available.(I have no statement on the intercept of the v2.0 instructions at this time).&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Enclave Page Cache (EPC) is a subset of Processor Reserved Memory (PRM), BIOS reserves PRM and then the HW carves out EPC from that region, depending on the amount of metadata the MEE requires. So when the BIOS reserves 128MB PRM the EPC carve out is ~90MB.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;-Surenthar&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 12:43:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079891#M559</guid>
      <dc:creator>Surenthar_S_Intel</dc:creator>
      <dc:date>2016-11-09T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Thanks for the reply! I</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079892#M560</link>
      <description>&lt;P&gt;Thanks for the reply! I apologize since my question wasn't clear enough. I actually want to inquire about the maximum virtual address space that an enclave can occupy? Since the complete virtual address space has to be included in the measurement, is there a limit to which we can extend the virtual address space?&lt;/P&gt;

&lt;P&gt;Some researchers have hinted that the maximum virtual address space is 64GB. Is that correct? If yes, can you please explain why such a limit exists?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 20:44:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079892#M560</guid>
      <dc:creator>AAhma10</dc:creator>
      <dc:date>2016-11-09T20:44:33Z</dc:date>
    </item>
    <item>
      <title>On Windows you are limited to</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079893#M561</link>
      <description>&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="font-size:10.5pt;font-family:&amp;quot;Helvetica&amp;quot;,sans-serif;
color:#666666"&gt;On Windows you are limited to the size of the enclave page cache, which is somewhere around 90 MB. The EPC is part of the processor reserved memory that is used by SGX, and is limited in the BIOS. The reason it's limited is because this memory is not available for use by other applications (or the OS) once SGX is enabled. Because there is no support for paging in Windows, you can't allocate more memory than this. All active enclaves have to fit within the EPC.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Helvetica, sans-serif; font-size: 10.5pt;"&gt;On Linux there is support for paging so enclaves are not limited to the size of the EPC. They can theoretically consume all the memory and virtual memory available to the system (minus the needs of the OS).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Helvetica, sans-serif; font-size: 10.5pt;"&gt;-Surenthar&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="line-height:15.0pt"&gt;&lt;SPAN style="font-size:10.5pt;font-family:&amp;quot;Helvetica&amp;quot;,sans-serif;
color:#666666"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 07:25:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079893#M561</guid>
      <dc:creator>Surenthar_S_Intel</dc:creator>
      <dc:date>2016-11-10T07:25:41Z</dc:date>
    </item>
    <item>
      <title>That answers my question.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079894#M562</link>
      <description>&lt;P&gt;That answers my question. Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 05:23:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079894#M562</guid>
      <dc:creator>AAhma10</dc:creator>
      <dc:date>2016-11-13T05:23:32Z</dc:date>
    </item>
    <item>
      <title>Sorry for reviving this old</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079895#M563</link>
      <description>&lt;P&gt;Sorry for reviving this old thread, but if I run the simple code below in an enclave (with SGX_MODE=HW) malloc eventually returns 0 (at around the 70th iteration). I have installed the Linux SDK/PSW/driver module, and "small" programs run fine. Do you have an advice? It runs fine in software emulation mode.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;for (int i=0;i&amp;lt;96;i++) {
  malloc(1024*1024);
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:03:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079895#M563</guid>
      <dc:creator>E_-O__B_</dc:creator>
      <dc:date>2016-11-16T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Thanks Surenthar for your</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079896#M564</link>
      <description>&lt;P&gt;Thanks Surenthar for your reply,&lt;/P&gt;

&lt;P&gt;I have a question related to this topic.&lt;/P&gt;

&lt;P&gt;Why PRM or EPC is limited in Intel&amp;nbsp;CPUs/ it is some restriction&amp;nbsp;posed by hardware or it is for the sake of security?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;

&lt;P&gt;Meysam&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2017 22:04:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Intel-SGX-Enclave-Virtual-Memory-Limit/m-p/1079896#M564</guid>
      <dc:creator>Meysam_t_</dc:creator>
      <dc:date>2017-06-18T22:04:34Z</dc:date>
    </item>
  </channel>
</rss>

