diff options
| author | Peter Maydell | 2015-07-17 16:22:45 +0200 |
|---|---|---|
| committer | Peter Maydell | 2015-07-17 16:22:45 +0200 |
| commit | 71358470eec668f5dc53def25e585ce250cea9bf (patch) | |
| tree | c9871f619742c9ec55f9ed6ab68a2b05ca2cc772 /include/hw | |
| parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20150717-1' into s... (diff) | |
| parent | virtio-rng: trigger timer only when guest requests for entropy (diff) | |
| download | qemu-71358470eec668f5dc53def25e585ce250cea9bf.tar.gz qemu-71358470eec668f5dc53def25e585ce250cea9bf.tar.xz qemu-71358470eec668f5dc53def25e585ce250cea9bf.zip | |
Merge remote-tracking branch 'remotes/amit-virtio-rng/tags/vrng-2.4' into staging
Fire timer only when required. Brings down wakeups by a big number.
# gpg: Signature made Fri Jul 17 14:41:40 2015 BST using RSA key ID 854083B6
# gpg: Good signature from "Amit Shah <amit@amitshah.net>"
# gpg: aka "Amit Shah <amit@kernel.org>"
# gpg: aka "Amit Shah <amitshah@gmx.net>"
* remotes/amit-virtio-rng/tags/vrng-2.4:
virtio-rng: trigger timer only when guest requests for entropy
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/virtio/virtio-rng.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index 0316488733..3f07de70c7 100644 --- a/include/hw/virtio/virtio-rng.h +++ b/include/hw/virtio/virtio-rng.h @@ -44,6 +44,7 @@ typedef struct VirtIORNG { */ QEMUTimer *rate_limit_timer; int64_t quota_remaining; + bool activate_timer; } VirtIORNG; #endif |
