Re: [PATCH v30 07/20] x86/sgx: Enumerate and track EPC sections

From: Jarkko Sakkinen
Date: Thu May 28 2020 - 03:36:41 EST


On Wed, May 27, 2020 at 10:35:09PM +0200, Borislav Petkov wrote:

> > One idea would be to provide a Kconfig a la NR_CPUS or NODES_SHIFT. I.e.
> > carve out the bits in sgx_epc_page_desc to allow up to N sections, but let
> > the user limit the number of sections to recoup the unused memory.
>
> I'd prefer a good estimate of a highest value, say 8 bits, which should
> suffice for the foreseeable future. That's the simplest thing to do and
> our Kconfig symbols space is an abomination of gazillion symbols.

OK, will do.

/Jarkko