Statistics
| Branch: | Revision:

root / hw / virtio-rng.h @ bf3bc4c4

History | View | Annotate | Download (592 Bytes)

# Date Author Comment
500054f1 11/16/2012 04:36 pm Anthony Liguori

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 <>

16c915ba 11/16/2012 04:36 pm Amit Shah

virtio-rng: hardware random number generator device

The Linux kernel already has a virtio-rng driver, this is the device
implementation.

When the guest asks for entropy from the virtio hwrng, it puts a buffer
in the vq. We then put entropy into that buffer, and push it back to...

904d6f58 11/16/2012 04:36 pm Anthony Liguori

virtio-rng: add rate limiting support

This adds parameters to virtio-rng-pci to allow rate limiting the entropy a
guest receives. An example command line:

$ qemu -device virtio-rng-pci,max-bytes=1024,period=1000

Would limit entropy collection to 1Kb/s....