[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver |
Date: |
Tue, 29 Nov 2016 10:29:35 +0100 |
On Tue, 29 Nov 2016 09:25:49 +0000
Stefan Hajnoczi <address@hidden> wrote:
> On Tue, Nov 29, 2016 at 08:22:58AM +0000, Gonglei (Arei) wrote:
> > Hi,
> >
> > > > > > +source "drivers/crypto/virtio/Kconfig"
> > > > > > +
> > > > > > endif # CRYPTO_HW
> > > > > > diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
> > > > > > index ad7250f..bc53cb8 100644
> > > > > > --- a/drivers/crypto/Makefile
> > > > > > +++ b/drivers/crypto/Makefile
> > > > > > @@ -32,3 +32,4 @@ obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
> > > > > > obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/
> > > > > > obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/
> > > > > > obj-$(CONFIG_CRYPTO_DEV_CHELSIO) += chelsio/
> > > > > > +obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
> > > > > > diff --git a/drivers/crypto/virtio/Kconfig
> > > > > > b/drivers/crypto/virtio/Kconfig
> > > > > > new file mode 100644
> > > > > > index 0000000..ceae88c
> > > > > > --- /dev/null
> > > > > > +++ b/drivers/crypto/virtio/Kconfig
> > > > > > @@ -0,0 +1,10 @@
> > > > > > +config CRYPTO_DEV_VIRTIO
> > > > > > + tristate "VirtIO crypto driver"
> > > > > > + depends on VIRTIO
> > > > > > + select CRYPTO_AEAD
> > > > > > + select CRYPTO_AUTHENC
> > > > > > + select CRYPTO_BLKCIPHER
> > > > >
> > > > > Inconsistent tab vs space whitespace usage.
> > > > >
> > > Will fix.
> > >
> > > > > > + default m
> > > > > > + help
> > > > > > + This driver provides support for virtio crypto device. If you
> > > > > > + choose 'M' here, this module will be called virtio-crypto.
> > > > >
> > > > > All the other virtio drivers use underscore ('_') instead of hyphen
> > > > > ('-').
> > > >
> > > > Except virtio-rng.
> > > >
> > > > > I suggest calling it virtio_crypto for consistency.
> > > > >
> > > OK, I will change the Makefile to fix it.
> > >
> >
> > I tried to do this, but I failed. Because virtio_crypto.ko
> > consists of more than one source file which include tree files currently,
> > and virtio_crypto.ko matchs the name of virtio_crypto.c.
> > That's different with all other virtio drivers.
>
> Can you rename virtio_crypto.c to virtio_crypto_core.c?
+1
I think that's the way to go.
- Re: [Qemu-devel] [virtio-dev] Re: [PATCH v3] crypto: add virtio-crypto driver, (continued)
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, kbuild test robot, 2016/11/28
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Stefan Hajnoczi, 2016/11/28
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Gonglei (Arei), 2016/11/28
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Gonglei (Arei), 2016/11/29
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Gonglei (Arei), 2016/11/29
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Stefan Hajnoczi, 2016/11/29
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver,
Cornelia Huck <=
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Gonglei (Arei), 2016/11/29
- Re: [Qemu-devel] [PATCH v3] crypto: add virtio-crypto driver, Gonglei (Arei), 2016/11/29