qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] monitor: throttle VSERPORT_CHANGED by "id"
@ 2015-09-17 16:08 marcandre.lureau
  2015-09-17 16:08 ` [Qemu-devel] [PATCH v2 1/5] monitor: split MonitorQAPIEventState marcandre.lureau
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: marcandre.lureau @ 2015-09-17 16:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru, amit.shah, Marc-André Lureau, lersek

From: Marc-André Lureau <marcandre.lureau@redhat.com>

QAPI_EVENT_VSERPORT_CHANGE reports changes of a virtio serial port
state. However, the events may be for different ports, but the throttle
mechanism may replace the event for a different port, since it only
checks the event type.

The following series implements throttling of events based on the "id"
field. Hopefully this hash table approach can be later extended if
other fields or combination of fields have to be used.

v1->v2:
- split first patch in 2 to ease review
- remove some extra space
- add some comments above delay handler function, and struct fields
- rename the delay handler data "delay_data"
- add a trace in monitor_protocol_event_delay()
- improve some commit messages
- simplify monitor_qapi_event_delay()
- add some comment assert code in monitor_qapi_event_id_delay() to
  ensure the given pending struct is valid
- fixed hashtable key leak
- rename qdict "data" argument to "qdict"
- removed superfluous parenthesis
- use a single timer handler for doing "id" filtering cleanup

Marc-André Lureau (5):
  monitor: split MonitorQAPIEventState
  monitor: introduce MonitorQAPIEventDelay callback
  monitor: rename QDict *data->qdict
  monitor: throttle QAPI_EVENT_VSERPORT_CHANGE by "id"
  monitor: remove old entries from event hash table

 monitor.c    | 256 ++++++++++++++++++++++++++++++++++++++++++++++-------------
 trace-events |   3 +-
 2 files changed, 203 insertions(+), 56 deletions(-)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-09-23 10:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17 16:08 [Qemu-devel] [PATCH v2 0/5] monitor: throttle VSERPORT_CHANGED by "id" marcandre.lureau
2015-09-17 16:08 ` [Qemu-devel] [PATCH v2 1/5] monitor: split MonitorQAPIEventState marcandre.lureau
2015-09-23 10:04   ` Daniel P. Berrange
2015-09-17 16:08 ` [Qemu-devel] [PATCH v2 2/5] monitor: introduce MonitorQAPIEventDelay callback marcandre.lureau
2015-09-23 10:05   ` Daniel P. Berrange
2015-09-17 16:08 ` [Qemu-devel] [PATCH v2 3/5] monitor: rename QDict *data->qdict marcandre.lureau
2015-09-23 10:06   ` Daniel P. Berrange
2015-09-17 16:08 ` [Qemu-devel] [PATCH v2 4/5] monitor: throttle QAPI_EVENT_VSERPORT_CHANGE by "id" marcandre.lureau
2015-09-23 10:07   ` Daniel P. Berrange
2015-09-17 16:08 ` [Qemu-devel] [PATCH v2 5/5] monitor: remove old entries from event hash table marcandre.lureau
2015-09-23 10:08   ` Daniel P. Berrange
2015-09-23  9:51 ` [Qemu-devel] [PATCH v2 0/5] monitor: throttle VSERPORT_CHANGED by "id" Marc-André Lureau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).