Re: [PATCH v10 05/12] nfit/libnvdimm: add unlock of nvdimm support for Intel DIMMs

2018-09-28 Thread David Howells
Dave Jiang wrote: > +/* > + * Find key in kernel keyring > + */ > +static struct key *nvdimm_get_key(struct device *dev) Note that the comment is no longer correct. > +static struct key *nvdimm_request_key(struct device *dev) > +{ > + struct nvdimm *nvdimm = to_nvdimm(dev); > + struct

[PATCH v10 05/12] nfit/libnvdimm: add unlock of nvdimm support for Intel DIMMs

2018-09-26 Thread Dave Jiang
Add support to allow query the security status of the Intel nvdimms and also unlock the dimm via the kernel key management APIs. The passphrase is expected to be pulled from userspace through keyutils. Moving the Intel related bits to its own source file as well. Signed-off-by: Dave Jiang