History | View | Annotate | Download (4.9 kB)
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virtio: limit avail bytes lookahead
Commit 0d8d7690850eb0cf2b2b60933cf47669a6b6f18f introduceda regression in virtio-net performance because it looksinto the ring aggressively while we really only careabout a single packet worth of buffers.Reported as bugzilla 1066055 in launchpad....
virtio-rng: do not use g_assert_cmpint
g_assert_cmpint is not available on glib 2.12, which is the minimumversion required to build QEMU (we only require 2.16 to run tests,since that is the first version including GTester). Do not use itin hardware models, use a normal assertion instead....
virtio-rng: use virtqueue_get_avail_bytes, fix migration
Popping an elem from the vq just to find out its length causes problemswith save/load later on. Use the new virtqueue_get_avail_bytes()function instead, saves us the complexity in the migration code, as well...
virtio-rng: remove extra request for entropy
If we got fewer bytes from the backend than requested, don't poke thebackend for more bytes; the guest will ask for more (or if the guest hasalready asked for more, the backend knows about it via handle_input())....
virtio-rng: disable timer on device removal
Disable the rate-limit timer on device remove (e.g. hot-unplug).
Signed-off-by: Amit Shah <amit.shah@redhat.com>Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-rng: fix typos, comments
Fix typos, whitespace and update comments to match currentimplementation.
Signed-off-by: Amit Shah <amit.shah@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-rng: hardware random number generator device
The Linux kernel already has a virtio-rng driver, this is the deviceimplementation.
When the guest asks for entropy from the virtio hwrng, it puts a bufferin the vq. We then put entropy into that buffer, and push it back to...
virtio-rng: add rate limiting support
This adds parameters to virtio-rng-pci to allow rate limiting the entropy aguest receives. An example command line:
$ qemu -device virtio-rng-pci,max-bytes=1024,period=1000
Would limit entropy collection to 1Kb/s....