[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210922170903.577801-1-lvivier@redhat.com>
Date: Wed, 22 Sep 2021 19:08:59 +0200
From: Laurent Vivier <lvivier@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: Alexander Potapenko <glider@...gle.com>,
linux-crypto@...r.kernel.org, Dmitriy Vyukov <dvyukov@...gle.com>,
rusty@...tcorp.com.au, amit@...nel.org, akong@...hat.com,
Herbert Xu <herbert@...dor.apana.org.au>,
"Michael S . Tsirkin" <mst@...hat.com>,
Matt Mackall <mpm@...enic.com>,
virtualization@...ts.linux-foundation.org,
Laurent Vivier <lvivier@...hat.com>
Subject: [PATCH 0/4] hwrng: virtio - add an internal buffer
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
Powered by blists - more mailing lists