qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC 0/3] qemu-ga: support for sending events
@ 2017-06-23 13:02 Tomáš Golembiovský
  2017-06-23 13:02 ` [Qemu-devel] [RFC 1/3] qemu-ga: add support for events Tomáš Golembiovský
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Tomáš Golembiovský @ 2017-06-23 13:02 UTC (permalink / raw)
  To: Michael Roth; +Cc: qemu-devel, Tomáš Golembiovský

This is just a draft, or a request for comments if you will.

This patch sets drafts the support of sending events by QEMU Guest Agent.
Events can plan important role in monitoring of the guest OS behaviour. The
range of use cases ranges from events important for scheduling, e.g. memory and
CPU usage statistics, to things like changes to IP addresses on network
interfaces to for example changes in the list of active users.

For now the patch set adds single periodic callback function to the GA main
loop that can perform checks and trigger events that have occured since
previous run of the callback.

We can of course take it one step further and add a general framwork for
periodically running any of the already implemented commands. Add a function
that would maintain a list of registered checks. Client would use some command
(register-monitor-command) passing it a command name and timeout in seconds and
the monitoring handler would then run the specified command and report the
result... or report only if the return value changed since previous invocation.
This feature would remove part of the communication overhead between client and
GA.

So before I invest any more time in either of these approaches, tell me. Would
somethign like this be wanted or is that too controversial? Any other thoughts
and ideas?

Tomáš Golembiovský (3):
  qemu-ga: add support for events
  qemu-ga: add simple event reporting memory statistics
  qemu-ga: add support for periodic command runner

 Makefile               |  7 +++-
 qga/Makefile.objs      |  2 +-
 qga/channel-posix.c    |  8 +++++
 qga/channel-win32.c    |  6 ++++
 qga/channel.h          |  1 +
 qga/guest-agent-core.h |  1 +
 qga/main.c             | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++
 qga/qapi-event.json    | 35 ++++++++++++++++++
 qga/qapi-schema.json   |  2 ++
 9 files changed, 158 insertions(+), 2 deletions(-)
 create mode 100644 qga/qapi-event.json

-- 
2.13.1

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

end of thread, other threads:[~2017-07-13  8:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-23 13:02 [Qemu-devel] [RFC 0/3] qemu-ga: support for sending events Tomáš Golembiovský
2017-06-23 13:02 ` [Qemu-devel] [RFC 1/3] qemu-ga: add support for events Tomáš Golembiovský
2017-07-07 20:53   ` Eric Blake
2017-07-13  8:56     ` Tomáš Golembiovský
2017-06-23 13:02 ` [Qemu-devel] [RFC 2/3] qemu-ga: add simple event reporting memory statistics Tomáš Golembiovský
2017-06-23 13:02 ` [Qemu-devel] [RFC 3/3] qemu-ga: add support for periodic command runner Tomáš Golembiovský
2017-06-23 13:25 ` [Qemu-devel] [RFC 0/3] qemu-ga: support for sending events Marc-André Lureau
2017-06-25 21:25   ` Tomáš Golembiovský
2017-07-07 20:48     ` Tomáš Golembiovský
2017-07-07 20:55 ` Eric Blake
2017-07-13  8:51   ` Tomáš Golembiovský

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).