Re: [PATCH, RFC 26/62] keys/mktme: Move the MKTME payload into a cache aligned structure

2019-06-14 Thread Alison Schofield
On Fri, Jun 14, 2019 at 01:35:23PM +0200, Peter Zijlstra wrote: > On Wed, May 08, 2019 at 05:43:46PM +0300, Kirill A. Shutemov wrote: > > > +/* Copy the payload to the HW programming structure and program this KeyID > > */ > > +static int mktme_program_keyid(int keyid, struct mktme_payload

Re: [PATCH, RFC 26/62] keys/mktme: Move the MKTME payload into a cache aligned structure

2019-06-14 Thread Peter Zijlstra
On Wed, May 08, 2019 at 05:43:46PM +0300, Kirill A. Shutemov wrote: > +/* Copy the payload to the HW programming structure and program this KeyID */ > +static int mktme_program_keyid(int keyid, struct mktme_payload *payload) > +{ > + struct mktme_key_program *kprog = NULL; > + int ret; >

[PATCH, RFC 26/62] keys/mktme: Move the MKTME payload into a cache aligned structure

2019-05-08 Thread Kirill A. Shutemov
From: Alison Schofield In preparation for programming the key into the hardware, move the key payload into a cache aligned structure. This alignment is a requirement of the MKTME hardware. Use the slab allocator to have this structure readily available. Signed-off-by: Alison Schofield