All of lore.kernel.org
 help / color / mirror / Atom feed
* Can I xc_await_suspend() for a suspend event caused by another application?
@ 2015-07-24 12:08 Razvan Cojocaru
  2015-08-10  9:28 ` Razvan Cojocaru
  0 siblings, 1 reply; 4+ messages in thread
From: Razvan Cojocaru @ 2015-07-24 12:08 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

Hello,

I've noticed that the xc_suspend_evtchn_init() functions in xenguest.h
connect the client application to a guest suspend event channel, and
that it's possible to subscribe to these events, in theory even if you
never signal the channel (i.e. even if you don't issue a suspend request).

But all the in-tree examples I've read seem to first signal the channel
and then wait on the same channel for the confirmation that the guest is
suspending.

Can the event channel be used solely to inform a monitoring application
that _another_ application (for example, xl) has requested a suspend?

To give you some context, I'm interested in being able to make the
difference between the case when a guest is going into suspend mode (and
is still running), and the case when a guest is history (which I'm now
doing via @releaseDomain xenstore events). Basically, the difference
between a regular guest shutdown and what happens on "xl save" (as early
as possible, while the guest is still running).


Thanks,
Razvan

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-24 12:08 Can I xc_await_suspend() for a suspend event caused by another application? Razvan Cojocaru
2015-08-10  9:28 ` Razvan Cojocaru
2015-08-10  9:52   ` Andrew Cooper
2015-08-10 10:03     ` Razvan Cojocaru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.