Thread (13 messages) 13 messages, 3 authors, 2021-10-05

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

From: Laurent Vivier <hidden>
Date: 2021-10-05 11:40:28
Also in: lkml, virtualization

On 22/09/2021 19:08, Laurent Vivier wrote:
hwrng core uses two buffers that can be mixed in the virtio-rng queue.

This series fixes the problem by adding an internal buffer in virtio-rng.

Once the internal buffer is added, we can fix two other problems:

- to be able to release the driver without waiting the device releases the
   buffer

- actually returns some data when wait=0 as we can have some already
   available data

It also tries to improve the performance by always having a buffer in
the queue of the device.

Laurent Vivier (4):
   hwrng: virtio - add an internal buffer
   hwrng: virtio - don't wait on cleanup
   hwrng: virtio - don't waste entropy
   hwrng: virtio - always add a pending request

  drivers/char/hw_random/virtio-rng.c | 84 +++++++++++++++++++++--------
  1 file changed, 63 insertions(+), 21 deletions(-)
Any comment?

Do we need a v2?

Thanks,
Laurent
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help