diff options
author | Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com> | 2022-11-04 15:32:11 +0100 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-03 15:18:54 +0300 |
commit | a3fcee5911bf760f9f4522e94cb9e6ab22a7eb95 (patch) | |
tree | 9bc175084b6bc1da48651fdc3767567e2a54c22e /virtio_rng.h | |
parent | 2b09c69cc896841c7828408083f6cb443fef8612 (diff) |
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 <t.ampelikiotis@virtualopensystems.com>
Diffstat (limited to 'virtio_rng.h')
-rw-r--r-- | virtio_rng.h | 8 |
1 files changed, 2 insertions, 6 deletions
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 |