virtio-rng.h (71358470eec668f5dc53def25e585ce250cea9bf) virtio-rng.h (cde63615343fb241f4044e6471e6e25be78574c8)
1/*
2 * Virtio RNG Support
3 *
4 * Copyright Red Hat, Inc. 2012
5 * Copyright Amit Shah <amit.shah@redhat.com>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or
8 * (at your option) any later version. See the COPYING file in the

--- 12 unchanged lines hidden (view full) ---

21 OBJECT_CHECK(VirtIORNG, (obj), TYPE_VIRTIO_RNG)
22#define VIRTIO_RNG_GET_PARENT_CLASS(obj) \
23 OBJECT_GET_PARENT_CLASS(obj, TYPE_VIRTIO_RNG)
24
25struct VirtIORNGConf {
26 RngBackend *rng;
27 uint64_t max_bytes;
28 uint32_t period_ms;
1/*
2 * Virtio RNG Support
3 *
4 * Copyright Red Hat, Inc. 2012
5 * Copyright Amit Shah <amit.shah@redhat.com>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or
8 * (at your option) any later version. See the COPYING file in the

--- 12 unchanged lines hidden (view full) ---

21 OBJECT_CHECK(VirtIORNG, (obj), TYPE_VIRTIO_RNG)
22#define VIRTIO_RNG_GET_PARENT_CLASS(obj) \
23 OBJECT_GET_PARENT_CLASS(obj, TYPE_VIRTIO_RNG)
24
25struct VirtIORNGConf {
26 RngBackend *rng;
27 uint64_t max_bytes;
28 uint32_t period_ms;
29 RndRandom *default_backend;
29 RngRandom *default_backend;
30};
31
32typedef struct VirtIORNG {
33 VirtIODevice parent_obj;
34
35 /* Only one vq - guest puts buffer(s) on it when it needs entropy */
36 VirtQueue *vq;
37

--- 13 unchanged lines hidden ---
30};
31
32typedef struct VirtIORNG {
33 VirtIODevice parent_obj;
34
35 /* Only one vq - guest puts buffer(s) on it when it needs entropy */
36 VirtQueue *vq;
37

--- 13 unchanged lines hidden ---