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

2020-07-02 Thread Jarkko Sakkinen
On Fri, Jun 26, 2020 at 08:16:45AM -0400, Stefan Berger wrote: > On 6/26/20 7:48 AM, Jarkko Sakkinen wrote: > > On Thu, Jun 25, 2020 at 05:27:50PM -0400, Stefan Berger wrote: > > > On 6/25/20 5:25 PM, Jarkko Sakkinen wrote: > > > > On Thu, Jun 25, 2020 at 08:41:18AM -0400, Stefan Berger wrote: > >

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

2020-06-26 Thread Stefan Berger
On 6/26/20 7:48 AM, Jarkko Sakkinen wrote: On Thu, Jun 25, 2020 at 05:27:50PM -0400, Stefan Berger wrote: On 6/25/20 5:25 PM, Jarkko Sakkinen wrote: On Thu, Jun 25, 2020 at 08:41:18AM -0400, Stefan Berger wrote: On 6/25/20 12:38 AM, Jarkko Sakkinen wrote: Re-allocate context and session

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

2020-06-26 Thread Jarkko Sakkinen
On Thu, Jun 25, 2020 at 05:38:03PM -0400, Stefan Berger wrote: > On 6/25/20 12:38 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

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

2020-06-26 Thread Jarkko Sakkinen
On Thu, Jun 25, 2020 at 02:28:17PM -0700, Jerry Snitselaar wrote: > On Thu Jun 25 20, 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

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

2020-06-26 Thread Jarkko Sakkinen
On Thu, Jun 25, 2020 at 05:27:50PM -0400, Stefan Berger wrote: > On 6/25/20 5:25 PM, Jarkko Sakkinen wrote: > > On Thu, Jun 25, 2020 at 08:41:18AM -0400, Stefan Berger wrote: > > > On 6/25/20 12:38 AM, Jarkko Sakkinen wrote: > > > > Re-allocate context and session buffers when needed. Scale them

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

2020-06-25 Thread Stefan Berger
On 6/25/20 12:38 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

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

2020-06-25 Thread Stefan Berger
On 6/25/20 5:25 PM, Jarkko Sakkinen wrote: On Thu, Jun 25, 2020 at 08:41:18AM -0400, Stefan Berger wrote: On 6/25/20 12:38 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

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

2020-06-25 Thread Jerry Snitselaar
On Thu Jun 25 20, 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

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

2020-06-25 Thread Jarkko Sakkinen
On Thu, Jun 25, 2020 at 08:41:18AM -0400, Stefan Berger wrote: > On 6/25/20 12:38 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

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

2020-06-25 Thread Stefan Berger
On 6/25/20 12:38 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

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

2020-06-24 Thread Jarkko Sakkinen
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 Bottomley Suggested-by: Stefan Berger