All of lore.kernel.org
 help / color / mirror / Atom feed
* Pre-domain released event?
@ 2015-12-14 16:23 Razvan Cojocaru
  0 siblings, 0 replies; only message in thread
From: Razvan Cojocaru @ 2015-12-14 16:23 UTC (permalink / raw)
  To: xen-devel

Hello,

Currently, all the in-tree examples that figure out that a domain has
been shut down subscribe to xenstore's @releaseDomain combined with an
xs_is_domain_introduced() check. That works fine if you're only
interested that the domain no longer exists. However, I'd like to be
able to do some cleanup before a domain is suspended (on taking a
snapshot, for example).

There are various degrees of tolerability doing this if I subscribe to
various xenstore paths that disappear before @releaseDomain gets fired,
and before the guest disappears, but it looks like it's not always
foolproof.

I've previously asked the question in a somewhat more convoluted manner
here: http://lists.xen.org/archives/html/xen-devel/2015-08/msg00735.html

I'm still interested in what the best solution would be here. A new,
blocking vm_event, that fires from the hypervisor immediately after it's
decided that the guest will be shutdown is what comes to mind, but I'm
not sure where the best place to put it would be. Or indeed if there
another / better way to do this.


Thanks,
Razvan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-14 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-14 16:23 Pre-domain released event? 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.