diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-26 12:05:49 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-16 08:36:14 -0600 |
commit | 500054f161c29ff9db125c0b872809191ad6920b (patch) | |
tree | 6857931a231d99a94f8245d7479e24354c22b813 /hw/virtio-rng.h | |
parent | 904d6f588063fb5ad2b61998acdf1e73fb465067 (diff) |
virtio-rng-pci: create a default backend if none exists
This allows you to specify:
$ qemu -device virtio-rng-pci
And things will Just Work with a reasonable default.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-rng.h')
-rw-r--r-- | hw/virtio-rng.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/virtio-rng.h b/hw/virtio-rng.h index 7324d0ab57..f42d748eba 100644 --- a/hw/virtio-rng.h +++ b/hw/virtio-rng.h @@ -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 |