All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] hwrng: virtio - add an internal buffer
@ 2021-09-22 17:08 ` Laurent Vivier
  0 siblings, 0 replies; 26+ messages in thread
From: Laurent Vivier @ 2021-09-22 17:08 UTC (permalink / raw)
  To: linux-kernel
  Cc: Alexander Potapenko, linux-crypto, Dmitriy Vyukov, rusty, amit,
	akong, Herbert Xu, Michael S . Tsirkin, Matt Mackall,
	virtualization, Laurent Vivier

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(-)

-- 
2.31.1



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

end of thread, other threads:[~2021-10-05 13:30 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 17:08 [PATCH 0/4] hwrng: virtio - add an internal buffer Laurent Vivier
2021-09-22 17:08 ` Laurent Vivier
2021-09-22 17:09 ` [PATCH 1/4] " Laurent Vivier
2021-09-22 17:09   ` Laurent Vivier
2021-09-22 19:02   ` Michael S. Tsirkin
2021-09-22 19:02     ` Michael S. Tsirkin
2021-09-23  6:26     ` Laurent Vivier
2021-09-23  6:26       ` Laurent Vivier
2021-09-23  7:04       ` Michael S. Tsirkin
2021-09-23  7:04         ` Michael S. Tsirkin
2021-09-23  7:34         ` Laurent Vivier
2021-09-23  7:34           ` Laurent Vivier
2021-10-05 11:55           ` Michael S. Tsirkin
2021-10-05 11:55             ` Michael S. Tsirkin
2021-10-05 13:30             ` Laurent Vivier
2021-10-05 13:30               ` Laurent Vivier
2021-09-22 17:09 ` [PATCH 2/4] hwrng: virtio - don't wait on cleanup Laurent Vivier
2021-09-22 17:09   ` Laurent Vivier
2021-09-22 17:09 ` [PATCH 3/4] hwrng: virtio - don't waste entropy Laurent Vivier
2021-09-22 17:09   ` Laurent Vivier
2021-09-22 17:09 ` [PATCH 4/4] hwrng: virtio - always add a pending request Laurent Vivier
2021-09-22 17:09   ` Laurent Vivier
2021-09-22 17:50 ` [PATCH 0/4] hwrng: virtio - add an internal buffer Alexander Potapenko
2021-09-22 17:50   ` Alexander Potapenko via Virtualization
2021-10-05 11:40 ` Laurent Vivier
2021-10-05 11:40   ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.