]> Git Repo - qemu.git/commit
monitor: Throttle event VSERPORT_CHANGE separately by "id"
authorMarkus Armbruster <[email protected]>
Thu, 15 Oct 2015 15:08:35 +0000 (17:08 +0200)
committerMarkus Armbruster <[email protected]>
Fri, 30 Oct 2015 08:05:38 +0000 (09:05 +0100)
commit7de0be6573afc9dcfb6aa0ded167ad6a8730f727
treeaa65a24f5afc2320f95b3aff27bca98480c97024
parenta24712af54259dd744a49447658521325f10a721
monitor: Throttle event VSERPORT_CHANGE separately by "id"

VSERPORT_CHANGE is emitted when the guest opens or closes a
virtio-serial port.  The event's member "id" identifies the port.

When several events arrive quickly, throttling drops all but the last
of them.  Because of that, a QMP client must assume that *any* port
may have changed state when it receives a VSERPORT_CHANGE event and
throttling may have happened.

Make the event more useful by throttling it for each port separately.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-Id: <1444921716[email protected]>
monitor.c
This page took 0.024795 seconds and 4 git commands to generate.