diff options
author | Markus Armbruster | 2019-08-20 18:06:14 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2019-09-04 12:32:51 +0200 |
commit | 5f7655f6ef1583c4b15c5a6e1aa2348538f6104b (patch) | |
tree | fccd3260282d36c120ff17d52d05c873c0775500 /include/hw | |
parent | rng-builtin: add an RNG backend that uses qemu_guest_getrandom() (diff) | |
download | qemu-5f7655f6ef1583c4b15c5a6e1aa2348538f6104b.tar.gz qemu-5f7655f6ef1583c4b15c5a6e1aa2348538f6104b.tar.xz qemu-5f7655f6ef1583c4b15c5a6e1aa2348538f6104b.zip |
virtio-rng: Keep the default backend out of VirtIORNGConf
The default backend is only used within virtio_rng_device_realize().
Replace VirtIORNGConf member default_backend by a local variable.
Adjust its type to reduce conversions.
While there, pass &error_abort instead of NULL when failure would be a
programming error.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20190820160615.14616-3-lvivier@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/virtio/virtio-rng.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index ff699335e3..bd05d734b8 100644 --- a/include/hw/virtio/virtio-rng.h +++ b/include/hw/virtio/virtio-rng.h @@ -14,7 +14,6 @@ #include "hw/virtio/virtio.h" #include "sysemu/rng.h" -#include "sysemu/rng-random.h" #include "standard-headers/linux/virtio_rng.h" #define TYPE_VIRTIO_RNG "virtio-rng-device" @@ -27,7 +26,6 @@ struct VirtIORNGConf { RngBackend *rng; uint64_t max_bytes; uint32_t period_ms; - RngRandom *default_backend; }; typedef struct VirtIORNG { |