Re: [PATCH 1/4] hwrng: virtio - add an internal buffer

2021-10-05 Thread Laurent Vivier
On 05/10/2021 13:55, Michael S. Tsirkin wrote: On Thu, Sep 23, 2021 at 09:34:18AM +0200, Laurent Vivier wrote: On 23/09/2021 09:04, Michael S. Tsirkin wrote: On Thu, Sep 23, 2021 at 08:26:06AM +0200, Laurent Vivier wrote: On 22/09/2021 21:02, Michael S. Tsirkin wrote: On Wed, Sep 22, 2021 at

Re: [PATCH 1/4] hwrng: virtio - add an internal buffer

2021-10-05 Thread Michael S. Tsirkin
On Thu, Sep 23, 2021 at 09:34:18AM +0200, Laurent Vivier wrote: > On 23/09/2021 09:04, Michael S. Tsirkin wrote: > > On Thu, Sep 23, 2021 at 08:26:06AM +0200, Laurent Vivier wrote: > > > On 22/09/2021 21:02, Michael S. Tsirkin wrote: > > > > On Wed, Sep 22, 2021 at 07:09:00PM +0200, Laurent Vivier

Re: [PATCH 1/4] hwrng: virtio - add an internal buffer

2021-09-23 Thread Laurent Vivier
On 23/09/2021 09:04, Michael S. Tsirkin wrote: On Thu, Sep 23, 2021 at 08:26:06AM +0200, Laurent Vivier wrote: On 22/09/2021 21:02, Michael S. Tsirkin wrote: On Wed, Sep 22, 2021 at 07:09:00PM +0200, Laurent Vivier wrote: hwrng core uses two buffers that can be mixed in the virtio-rng queue.

Re: [PATCH 1/4] hwrng: virtio - add an internal buffer

2021-09-23 Thread Michael S. Tsirkin
On Thu, Sep 23, 2021 at 08:26:06AM +0200, Laurent Vivier wrote: > On 22/09/2021 21:02, Michael S. Tsirkin wrote: > > On Wed, Sep 22, 2021 at 07:09:00PM +0200, Laurent Vivier wrote: > > > hwrng core uses two buffers that can be mixed in the > > > virtio-rng queue. > > > > > > If the buffer is provi

Re: [PATCH 1/4] hwrng: virtio - add an internal buffer

2021-09-22 Thread Laurent Vivier
On 22/09/2021 21:02, Michael S. Tsirkin wrote: On Wed, Sep 22, 2021 at 07:09:00PM +0200, Laurent Vivier wrote: hwrng core uses two buffers that can be mixed in the virtio-rng queue. If the buffer is provided with wait=0 it is enqueued in the virtio-rng queue but unused by the caller. On the nex

Re: [PATCH 1/4] hwrng: virtio - add an internal buffer

2021-09-22 Thread Michael S. Tsirkin
On Wed, Sep 22, 2021 at 07:09:00PM +0200, Laurent Vivier wrote: > hwrng core uses two buffers that can be mixed in the > virtio-rng queue. > > If the buffer is provided with wait=0 it is enqueued in the > virtio-rng queue but unused by the caller. > On the next call, core provides another buffer b

[PATCH 1/4] hwrng: virtio - add an internal buffer

2021-09-22 Thread Laurent Vivier
hwrng core uses two buffers that can be mixed in the virtio-rng queue. If the buffer is provided with wait=0 it is enqueued in the virtio-rng queue but unused by the caller. On the next call, core provides another buffer but the first one is filled instead and the new one queued. And the caller re