Daniel P. Berrange 973603a813 Add event notification for guest balloon changes
After setting a balloon target value, applications have to
continually poll 'query-balloon' to determine whether the
guest has reacted to this request. The virtio-balloon backend
knows exactly when the guest has reacted though, and thus it
is possible to emit a JSON event to tell the mgmt application
whenever the guest balloon changes.

This introduces a new 'qemu_balloon_changed()' API which is
to be called by balloon driver backends, whenever they have
a change in balloon value. This takes the 'actual' balloon
value, as would be found in the BalloonInfo struct.

The qemu_balloon_change API emits a JSON monitor event which
looks like:

  {"timestamp": {"seconds": 1337162462, "microseconds": 814521},
   "event": "BALLOON_CHANGE", "data": {"actual": 944766976}}

* balloon.c, balloon.h: Introduce qemu_balloon_changed() for
  emitting balloon change events on the monitor
* hw/virtio-balloon.c: Invoke qemu_balloon_changed() whenever
  the guest changes the balloon actual value
* monitor.c, monitor.h: Define QEVENT_BALLOON_CHANGE

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2012-06-15 13:34:50 -03:00
2012-06-15 15:52:45 +04:00
2012-05-30 10:28:44 +08:00
2012-05-16 18:04:45 -03:00
2012-06-15 10:41:05 -03:00
2012-05-30 17:04:41 +00:00
2012-05-30 17:04:41 +00:00
2012-04-19 16:51:47 +02:00
2012-01-18 10:23:39 -02:00
2012-01-13 10:37:00 +00:00
2012-05-14 07:27:24 +02:00
2012-02-09 16:17:51 +01:00
2012-03-12 10:30:23 +00:00
2012-04-15 21:25:16 +02:00
2012-03-30 08:14:11 -05:00
2012-05-12 09:14:38 +00:00
2012-01-10 09:36:43 +01:00
2012-03-07 13:03:51 +00:00
2012-04-01 20:30:23 +02:00
2012-05-14 07:27:24 +02:00
2012-03-14 22:20:27 +01:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-03-14 22:20:27 +01:00
2012-06-04 13:49:35 -03:00
2012-06-15 10:41:05 -03:00
2012-06-04 13:49:35 -03:00
2012-05-08 14:30:09 -03:00
2012-03-19 15:17:21 +02:00
2012-01-13 10:55:56 -06:00
2012-06-15 10:41:05 -03:00
2011-12-09 11:25:22 +00:00
2012-05-10 08:33:34 -05:00
2012-06-07 09:21:18 +02:00
2012-03-15 10:39:52 -03:00
2012-02-15 09:39:21 -06:00
2012-06-04 13:49:35 -03:00
2012-06-04 13:49:35 -03:00
2012-02-17 08:33:32 -06:00
2012-02-17 08:33:32 -06:00
2012-04-26 13:14:58 -05:00
2011-12-22 11:53:58 +01:00
2012-01-13 10:55:56 -06:00
2012-03-14 22:20:27 +01:00
2012-01-10 18:23:58 +01:00
2012-04-07 14:00:45 +00:00
2012-01-10 18:23:58 +01:00
2012-02-03 10:41:08 -06:00
2012-05-14 17:02:19 +02:00
2012-05-10 10:32:13 +02:00
2012-06-15 12:44:26 +02:00
2012-04-19 17:19:37 +02:00
2012-04-15 21:25:16 +02:00
2012-04-07 14:00:45 +00:00
2012-05-01 00:17:27 +02:00
2011-12-15 09:20:50 -06:00
2011-12-06 10:07:04 +00:00
2012-04-26 13:14:58 -05:00
2012-05-08 14:30:09 -03:00
2012-04-24 09:50:31 -05:00
2011-12-11 17:50:43 -06:00
2012-03-14 22:20:27 +01:00
2012-03-15 10:39:52 -03:00
2012-05-08 11:15:18 -05:00
2012-06-07 10:02:22 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%