util: Add qemu_guest_getrandom and associated routines
commit8d8404f1564496f42b90497e7be635921c000e9d
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2019 20:02:09 +0000 (14 13:02 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 22 May 2019 16:38:54 +0000 (22 12:38 -0400)
tree0b25ec7d6d4454fc5218ac5684acfa70bdd7140e
parentf7b2502cdc2eeb458a4490c1b8f4a83c07d46219
util: Add qemu_guest_getrandom and associated routines

This routine is intended to produce high-quality random numbers to the
guest.  Normally, such numbers are crypto quality from the host, but a
command-line option can force the use of a fully deterministic sequence
for use while debugging.

Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/qemu/guest-random.h [new file with mode: 0644]
util/Makefile.objs
util/guest-random.c [new file with mode: 0644]