From a3fcee5911bf760f9f4522e94cb9e6ab22a7eb95 Mon Sep 17 00:00:00 2001 From: Timos Ampelikiotis Date: Fri, 4 Nov 2022 15:32:11 +0100 Subject: Virtio-loopback-adapter Beta version for review: - Beta version of the code to be discussed during the review planned on the 09/11/2022 - Before being merged into master, this code might be changed with fixes and optimization Signed-off-by: Timos Ampelikiotis --- virtio_rng.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'virtio_rng.h') diff --git a/virtio_rng.h b/virtio_rng.h index 812ddb4..8147864 100644 --- a/virtio_rng.h +++ b/virtio_rng.h @@ -16,17 +16,14 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef VIRTIO_RNG -#define VIRTIO_RNG +#ifndef VIRTIO_RNG_DEV +#define VIRTIO_RNG_DEV #include "virtio_loopback.h" extern const char test_str[64]; -typedef void RngBackend; - typedef struct VirtIORNGConf { - RngBackend *rng; uint64_t max_bytes; uint32_t period_ms; } VirtIORNGConf; @@ -37,7 +34,6 @@ typedef struct VirtIORNG { /* Only one vq - guest puts buffer(s) on it when it needs entropy */ VirtQueue *vq; VirtIORNGConf conf; - RngBackend *rng; /* * We purposefully don't migrate this state. The quota will reset on the -- cgit 1.2.3-korg