]> git.proxmox.com Git - qemu.git/commit
virtio-rng: add rate limiting support
authorAnthony Liguori <aliguori@us.ibm.com>
Tue, 30 Oct 2012 22:45:05 +0000 (17:45 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 16 Nov 2012 14:36:13 +0000 (08:36 -0600)
commit904d6f588063fb5ad2b61998acdf1e73fb465067
tree12d966d8fff1c6d36965a615c0afd75af22111ab
parent16c915ba42b45df7a64a6908287f03bfa3764bed
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.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-pci.c
hw/virtio-rng.c
hw/virtio-rng.h