[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/4] cryptodev-vhost-user: add crypto session ha

From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH 3/4] cryptodev-vhost-user: add crypto session handler
Date: Tue, 28 Nov 2017 21:15:09 +0200

On Tue, Nov 28, 2017 at 11:45:31AM +0100, Paolo Bonzini wrote:
> On 28/11/2017 11:43, Gonglei (Arei) wrote:
> >> As far as I understand, VIRTIO_CRYPTO_CIPHER_CREATE_SESSION is called as
> >> a result of sending a message on the control virtqueue.
> >
> > VIRTIO_CRYPTO_CIPHER_CREATE_SESSION is a message type of control queue,
> > Means creating a session for next crypto requests.
> Ok, so the message does have the same meaning as the control queue
> message.  Thanks for confirming.
> >> Why can't vhost-user also process create/destroy session messages on the
> >> control virtqueue, instead of having device-specific messages in the
> >> protocol?
> >
> > You mean we can share control virtqueue to DPDK as well? Like data queues?
> I don't know :) but why not?
> Thanks,
> Paolo

There are advantages to parsing the control queue in QEMU, e.g. it then
has visibility into which sessions exist.

It's a question of what works and what are the driver's expectations.

E.g. for network guests tend to poll the control queue so handling
that queue in QEMU helps us to keep guest going even if
backend disconnects.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]