RE: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-29 Thread Parav Pandit
nel.org > Subject: Re: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias > > On Wed, 28 Aug 2019 15:25:44 -0600 > Alex Williamson wrote: > > > On Tue, 27 Aug 2019 14:16:50 -0500 > > Parav Pandit wrote: > > > module_init(mdev_init) > > > d

RE: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-29 Thread Parav Pandit
nel.org > Subject: Re: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias > > > + /* Allocate and init descriptor */ > > + hash_desc = kvzalloc(sizeof(*hash_desc) + > > +crypto_shash_descsize(alias_hash), > > +GFP_KE

Re: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-28 Thread Alex Williamson
On Wed, 28 Aug 2019 15:25:44 -0600 Alex Williamson wrote: > On Tue, 27 Aug 2019 14:16:50 -0500 > Parav Pandit wrote: > > module_init(mdev_init) > > diff --git a/drivers/vfio/mdev/mdev_private.h > > b/drivers/vfio/mdev/mdev_private.h > > index 7d922950caaf..cf1c0d9842c6 100644 > > ---

Re: [PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-28 Thread Alex Williamson
On Tue, 27 Aug 2019 14:16:50 -0500 Parav Pandit wrote: > Some vendor drivers want an identifier for an mdev device that is > shorter than the UUID, due to length restrictions in the consumers of > that identifier. > > Add a callback that allows a vendor driver to request an alias of a >

[PATCH v1 1/5] mdev: Introduce sha1 based mdev alias

2019-08-27 Thread Parav Pandit
Some vendor drivers want an identifier for an mdev device that is shorter than the UUID, due to length restrictions in the consumers of that identifier. Add a callback that allows a vendor driver to request an alias of a specified length to be generated for an mdev device. If generated, that