Re: [PATCH v40 09/24] x86/sgx: Add SGX page allocator functions

2020-11-05 Thread Borislav Petkov
On Wed, Nov 04, 2020 at 04:54:15PM +0200, Jarkko Sakkinen wrote: > The previous patch initialized a simple SGX page allocator. Add functions > for runtime allocation and free. > > This allocator and its algorithms are as simple as it gets. They do a > linear search across all EPC sections and fi

[PATCH v40 09/24] x86/sgx: Add SGX page allocator functions

2020-11-04 Thread Jarkko Sakkinen
The previous patch initialized a simple SGX page allocator. Add functions for runtime allocation and free. This allocator and its algorithms are as simple as it gets. They do a linear search across all EPC sections and find the first free page. They are not NUMA aware and only hand out individu