summaryrefslogtreecommitdiffstats
path: root/hw/virtio-rng.h
Commit message (Collapse)AuthorAgeFilesLines
* virtio-rng-pci: create a default backend if none existsAnthony Liguori2012-11-161-0/+2
| | | | | | | | | | 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>
* virtio-rng: add rate limiting supportAnthony Liguori2012-11-161-0/+2
| | | | | | | | | | | 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. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* virtio-rng: hardware random number generator deviceAmit Shah2012-11-161-0/+24
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 the guest. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> --- aliguori: converted to new RngBackend interface aliguori: remove entropy needed event aliguori: fix migration
OpenPOWER on IntegriCloud