diff options
author | Laurent Vivier <lvivier@redhat.com> | 2019-08-20 18:06:13 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-09-04 06:32:51 -0400 |
commit | 6c4e9d487fea67ceaebf5942be5b76ed675d0e9a (patch) | |
tree | 7c4e9610467292b6df01d181f647d8328a549e4a /qemu-options.hx | |
parent | 379d83f2c92879f4418aa9c57fd1fcbc3c82d384 (diff) |
rng-builtin: add an RNG backend that uses qemu_guest_getrandom()
Add a new RNG backend using QEMU builtin getrandom function.
It can be created and used with something like:
... -object rng-builtin,id=rng0 -device virtio-rng,rng=rng0 ...
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20190820160615.14616-2-lvivier@redhat.com>
Diffstat (limited to 'qemu-options.hx')
-rw-r--r-- | qemu-options.hx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-options.hx b/qemu-options.hx index ea0638e92d..a8b70d946f 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -4332,6 +4332,13 @@ other options. The @option{share} boolean option is @var{on} by default with memfd. +@item -object rng-builtin,id=@var{id} + +Creates a random number generator backend which obtains entropy from +QEMU builtin functions. The @option{id} parameter is a unique ID that +will be used to reference this entropy backend from the @option{virtio-rng} +device. + @item -object rng-random,id=@var{id},filename=@var{/dev/random} Creates a random number generator backend which obtains entropy from |