[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Can I xc_await_suspend() for a suspend event caused by another application?

  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Fri, 24 Jul 2015 15:08:12 +0300
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Fri, 24 Jul 2015 12:08:19 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=Ec9e5eY+vTTK23LmgHQaxOsqakG1byj7mzLe46c2cgzumK2Peg/WJST+91MubwzuhsSIDXkZSx3IibuyoOOHohcP9KEW/wMPgLMrkfSvOHj/5dMB/11VxlNmUAQGT5rQShwSNviJUNhXXUG2HeiXtuLEmt4yeJ7DoAHpoLGJtcPqhNFltNAe2zxB8KZXUmFyBYTa1IfJUPlAA4jXPy7Ncr6Mhi1SQn70P0kuvCmK9Sr3LvIyvZdwNfG/WD13Lh9pnHxuKnev8hwUtOCViEqiPRASPhG3x2C0kd4qWPHt8ynp/LsIpMsMQ+jJEoYnUZuoqYQNenc4QHmPq+a/sNS7fw==; h=Received:Received:Received:Received:Received:To:From:Subject:X-Enigmail-Draft-Status:Message-ID:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>


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

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


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.