From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Wray Subject: Re: PATCH: ability to send sysrqs to Linux domains Date: Thu, 09 Dec 2004 17:43:59 +0000 Message-ID: <41B88EDF.9030906@hpl.hp.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Matthew Bloch Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Matthew Bloch wrote: > Here's the promised patch against a recent 2.01 snapshot to allow you to > send sysrqs to running Linux kernels. I went with Keir's suggestion of > adding a sub-reason code to the shutdown message with a 1-byte payload > specifying which key was pressed. Hope it's acceptable for the main > tree; I will happily alter it to spec if any of the maintainers have > suggestions for better structuring it. There's a slight problem with the client/server python code. On the client side you have def xend_domain_shutdown(self, id, reason, key=None): return self.xendPost(self.domainurl(id), {'op' : 'shutdown', 'reason' : reason, 'key' : key }) while on the server side you have fn = FormFn(self.xd.domain_shutdown, [['dom', 'str'], ['reason', 'str'], ['key', 'int']]) which means 'key' has to be an int. So passing 'None' is going to cause an error. Mike ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/