]> git.proxmox.com Git - qemu.git/commit
rng-random: add an RNG backend that uses /dev/random (v3)
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 25 Jun 2012 15:34:09 +0000 (10:34 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 16 Nov 2012 14:36:13 +0000 (08:36 -0600)
commit5c74521d249486fa3e749dbbf6d56a70d4d7235f
tree2c70ecc569e7a7d64d4e7a799ff2fd7ed10c7e53
parenta9b7b2ad7b075dba5495271706670e5c6b1304bc
rng-random: add an RNG backend that uses /dev/random (v3)

The filename can be overridden but it expects a non-blocking source of entropy.
A typical invocation would be:

qemu -object rng-random,id=rng0 -device virtio-rng-pci,rng=rng0

This can also be used with /dev/urandom by using the command line:

qemu -object rng-random,filename=/dev/urandom,id=rng0 \
     -device virtio-rng-pci,rng=rng0

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
v1 -> v2
 - merged header split patch into this one
v2 -> v3
 - bug fix in rng-random (Paolo)
backends/Makefile.objs
backends/rng-random.c [new file with mode: 0644]
include/qemu/rng-random.h [new file with mode: 0644]