Re: [PATCH] tpm: tpm2-space: Resize session and context buffers dynamically

2020-06-25 Thread Jarkko Sakkinen
On Thu, Jun 25, 2020 at 08:13:09AM -0400, Stefan Berger wrote: > On 6/25/20 12:24 AM, Jarkko Sakkinen wrote: > > Re-allocate context and session buffers when needed. Scale them in page > > increments so that the reallocation is only seldomly required, and thus > > causes minimal stress to the syste

Re: [PATCH] tpm: tpm2-space: Resize session and context buffers dynamically

2020-06-25 Thread Stefan Berger
On 6/25/20 12:24 AM, Jarkko Sakkinen wrote: Re-allocate context and session buffers when needed. Scale them in page increments so that the reallocation is only seldomly required, and thus causes minimal stress to the system. Add a static maximum limit of four pages for buffer sizes. Cc: James Bo

Re: [PATCH] tpm: tpm2-space: Resize session and context buffers dynamically

2020-06-24 Thread Jarkko Sakkinen
On Thu, Jun 25, 2020 at 07:24:20AM +0300, Jarkko Sakkinen wrote: > Re-allocate context and session buffers when needed. Scale them in page > increments so that the reallocation is only seldomly required, and thus > causes minimal stress to the system. Add a static maximum limit of four > pages for