]> git.proxmox.com Git - qemu.git/blobdiff - hw/virtio-rng.h
virtio-rng-pci: create a default backend if none exists
[qemu.git] / hw / virtio-rng.h
index 7324d0ab57ef1959f704e5c37866792c599710de..f42d748eba3a550a1bec0bc9a7911a641162e4c4 100644 (file)
@@ -13,6 +13,7 @@
 #define _QEMU_VIRTIO_RNG_H
 
 #include "qemu/rng.h"
+#include "qemu/rng-random.h"
 
 /* The Virtio ID for the virtio rng device */
 #define VIRTIO_ID_RNG    4
@@ -21,6 +22,7 @@ struct VirtIORNGConf {
     RngBackend *rng;
     uint64_t max_bytes;
     uint32_t period_ms;
+    RndRandom *default_backend;
 };
 
 #endif