[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device
From: |
Halil Pasic |
Subject: |
Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification |
Date: |
Wed, 15 Feb 2017 13:28:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 02/13/2017 02:41 PM, Stefan Hajnoczi wrote:
> On Fri, Feb 03, 2017 at 07:07:02PM +0100, Halil Pasic wrote:
>>
>>
>> On 02/03/2017 04:37 PM, Michael S. Tsirkin wrote:
>>> On Fri, Feb 03, 2017 at 10:33:16AM +0000, Stefan Hajnoczi wrote:
>>>>> +\begin{description}
>>>>> +\item[0] dataq1
>>>>> +\item[\ldots]
>>>>> +\item[N-1] dataqN
>>>>> +\item[N] controlq
>>>>> +\end{description}
>>>>> +
>>>>> +N is set by \field{max_dataqueues}.
>>>>> +
>>>>> +\subsection{Feature bits}\label{sec:Device Types / Crypto Device /
>>>>> Feature bits}
>>>>> +
>>>>> +VIRTIO_CRYPTO_F_NON_SESSION_MODE (0) non-session mode is available.
>>>>> +VIRTIO_CRYPTO_F_CIPHER_NON_SESSION_MODE (1) non-session mode is
>>>>> available for CIPHER service.
>>>>> +VIRTIO_CRYPTO_F_HASH_NON_SESSION_MODE (2) non-session mode is available
>>>>> for HASH service.
>>>>> +VIRTIO_CRYPTO_F_MAC_NON_SESSION_MODE (3) non-session mode is available
>>>>> for MAC service.
>>>>> +VIRTIO_CRYPTO_F_AEAD_NON_SESSION_MODE (4) non-session mode is available
>>>>> for AEAD service.
>>>>
>>>> Bits 1-4 require bit 0. Is bit 0 necessary at all? Or may bits 1-4 can
>>>> be eliminated in favor of just bit 0.
>>>
>>> Too late to change it as QEMU released a device with that feature.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>
>>
>> When was this introduced to QEMU? Can't find it in current master
>> and I do not remember seeing the patches.
>
> s/QEMU/Linux/
>
> It's in drivers/crypto/virtio/.
>
Thanks! Sorry but I could not find the NON_SESSION_MODE in Linus master
(Linux) either, and Michael has stated that a QEMU device was released
with these. I'm still confused. But if it's only Linux, it most likely is
not interface, so theoretically should not break anything if we change it
-- should we want to change it.
I think your original questions regarding these feature bits are valid
(and have not been addressed in a satisfactory way yet) by the way.
Halil
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Stefan Hajnoczi, 2017/02/03
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Michael S. Tsirkin, 2017/02/03
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Gonglei (Arei), 2017/02/05
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Stefan Hajnoczi, 2017/02/06
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Michael S. Tsirkin, 2017/02/06
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Gonglei (Arei), 2017/02/06
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Halil Pasic, 2017/02/08
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Gonglei (Arei), 2017/02/08
- Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification, Halil Pasic, 2017/02/07