qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] virtio crypto device implemenation
@ 2017-05-23 16:08 Zeng, Xin
  2017-05-24  1:13 ` Michael S. Tsirkin
  0 siblings, 1 reply; 3+ messages in thread
From: Zeng, Xin @ 2017-05-23 16:08 UTC (permalink / raw)
  To: mst@redhat.com
  Cc: Gonglei (Arei), virtio-dev@lists.oasis-open.org,
	qemu-devel@nongnu.org

Hi, Michael, 
   As you know, Lei Gong from Huawei and I are co-working  on virtio crypto device spec, he is focusing on symmetric algorithm part, I am focusing on asymmetric part.  Now I am planning the implementation for asymmetric part, would you please give me your point regarding the questions below?
   Current virtio crypto device implementation from Lei Gong:
   The virtio crypto device implementation has been upstreamed to QEMU and it has a qemu backend implementation for symmetric algorithm part, the front end Linux device driver for symmetric part has been upstreamed to Linux kernel as well.
   My questions:
   From my side, I planned to add the asymmetric part support in upstreamed front end device driver, and I don't want to add the asymmetric algorithm support to current virtio crypto device's qemu backend, instead, I would like to implement and upstream a DPDK vhost-user based backend for asymmetric algorithm, and accordingly Lei Gong will help to upstream a vhost user agent for virtio crypto device in QEMU,  is this approach acceptable? Is a qemu backend a mandatory requirement for the virtio crypto device?  Is there a general policy for this?

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] virtio crypto device implemenation
  2017-05-23 16:08 [Qemu-devel] virtio crypto device implemenation Zeng, Xin
@ 2017-05-24  1:13 ` Michael S. Tsirkin
  2017-05-24 10:21   ` [Qemu-devel] [virtio-dev] " Cornelia Huck
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2017-05-24  1:13 UTC (permalink / raw)
  To: Zeng, Xin
  Cc: Gonglei (Arei), virtio-dev@lists.oasis-open.org,
	qemu-devel@nongnu.org

On Tue, May 23, 2017 at 04:08:25PM +0000, Zeng, Xin wrote:
> Hi, Michael, 
>    As you know, Lei Gong from Huawei and I are co-working  on virtio crypto device spec, he is focusing on symmetric algorithm part, I am focusing on asymmetric part.  Now I am planning the implementation for asymmetric part, would you please give me your point regarding the questions below?
>    Current virtio crypto device implementation from Lei Gong:
>    The virtio crypto device implementation has been upstreamed to QEMU and it has a qemu backend implementation for symmetric algorithm part, the front end Linux device driver for symmetric part has been upstreamed to Linux kernel as well.
>    My questions:
>    From my side, I planned to add the asymmetric part support in upstreamed front end device driver, and I don't want to add the asymmetric algorithm support to current virtio crypto device's qemu backend, instead, I would like to implement and upstream a DPDK vhost-user based backend for asymmetric algorithm, and accordingly Lei Gong will help to upstream a vhost user agent for virtio crypto device in QEMU,  is this approach acceptable? Is a qemu backend a mandatory requirement for the virtio crypto device?  Is there a general policy for this?
> 
> Thanks

Parity on QEMU side is naturally preferable.  I don't think we should require it
at all times, but if there's no implementation outside vhost-user,
and if the feature includes a non-trivial amount of code, how
will it be tested? I don't think we want to require all testers to use
dpdk. An implementation under tests using libvhost-user might
be a solution.

-- 
MST

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [virtio-dev] Re: virtio crypto device implemenation
  2017-05-24  1:13 ` Michael S. Tsirkin
@ 2017-05-24 10:21   ` Cornelia Huck
  0 siblings, 0 replies; 3+ messages in thread
From: Cornelia Huck @ 2017-05-24 10:21 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: Zeng, Xin, Gonglei (Arei), virtio-dev@lists.oasis-open.org,
	qemu-devel@nongnu.org, Halil Pasic

On Wed, 24 May 2017 04:13:47 +0300
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Tue, May 23, 2017 at 04:08:25PM +0000, Zeng, Xin wrote:
> > Hi, Michael, 
> >    As you know, Lei Gong from Huawei and I are co-working  on virtio crypto device spec, he is focusing on symmetric algorithm part, I am focusing on asymmetric part.  Now I am planning the implementation for asymmetric part, would you please give me your point regarding the questions below?
> >    Current virtio crypto device implementation from Lei Gong:
> >    The virtio crypto device implementation has been upstreamed to QEMU and it has a qemu backend implementation for symmetric algorithm part, the front end Linux device driver for symmetric part has been upstreamed to Linux kernel as well.
> >    My questions:
> >    From my side, I planned to add the asymmetric part support in upstreamed front end device driver, and I don't want to add the asymmetric algorithm support to current virtio crypto device's qemu backend, instead, I would like to implement and upstream a DPDK vhost-user based backend for asymmetric algorithm, and accordingly Lei Gong will help to upstream a vhost user agent for virtio crypto device in QEMU,  is this approach acceptable? Is a qemu backend a mandatory requirement for the virtio crypto device?  Is there a general policy for this?
> > 
> > Thanks
> 
> Parity on QEMU side is naturally preferable.  I don't think we should require it
> at all times, but if there's no implementation outside vhost-user,
> and if the feature includes a non-trivial amount of code, how
> will it be tested? I don't think we want to require all testers to use
> dpdk. An implementation under tests using libvhost-user might
> be a solution.

From the s390 perspective, I'd naturally prefer a qemu implementation.
I think there is value in being able to try it out on a variety of
platforms, so that you can shake out problems such as endianness easily.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-24 10:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-23 16:08 [Qemu-devel] virtio crypto device implemenation Zeng, Xin
2017-05-24  1:13 ` Michael S. Tsirkin
2017-05-24 10:21   ` [Qemu-devel] [virtio-dev] " Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).