Skip to content

Event notifications for balloon driver

Daniel P. Berrange qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 14 repliesIn review
  2. v11 patch 4 repliesSuperseded

Changes in v2 from the cover letter

- Use a static array of strings for QMP event ID -> string conversion
- Add BALLOON_CHANGE to qmp-events.txt

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add 'query-events' command to QMP to query async eventsmonitor.c monitor.h qapi-schema.json +1 more+108 -621 reply
2/3Add event notification for guest balloon changesQMP/qmp-events.txt balloon.c balloon.h +3 more+41 -03 replies
3/3Add rate limiting of RTC_CHANGE, BALLOON_CHANGE & WATCHDOG eventsmonitor.c monitor.h trace-events +1 more+164 -67 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] Event notifications for balloon driver

This series is a followup to 2 previously posted patches

* BALLOON_CHANGE QMP event:
http://lists.nongnu.org/archive/html/qemu-devel/2012-05/msg02215.html

* query-events QMP command:
http://lists.nongnu.org/archive/html/qemu-devel/2012-05/msg02255.html

Changes since v1:

- Use a static array of strings for QMP event ID -> string conversion
- Add BALLOON_CHANGE to qmp-events.txt

There is also a new patch in this series, which introduces the ability todo simple rate limiting of stateless monitor events. With the ballooning of a 1.8 GB guest, down to 0.9 GB this reduced the number of events emitted from ~50 down to just 4, spread across a 4 second time window. It is important to note that events are only discarded when they are obsoleted by a newer event. So an application is guarenteed to see the final balloon event, with at worst a 1 second delay.

This series is being tested with a corresponding patch to libvirt for handling balloon events

https://www.redhat.com/archives/libvir-list/2012-May/msg00868.html