Matthew Bloch
2004-Dec-09 11:44 UTC
[Xen-devel] PATCH: ability to send sysrqs to Linux domains
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.
It adds the CONFIG_MAGIC_SYSRQ option to the Linux kernel which you need
to turn on for a guest to work with it, then you can just do e.g. "xm
sysrq domainname s" to sync your discs.
cheers,
--
Matthew Bloch Bytemark Hosting
http://www.bytemark.co.uk/
phone UK: 0845 004 3 004 US: 1-877 BYTEMAR
Dedicated Linux hosts from 15ukp ($26) per month
Mike Wray
2004-Dec-09 17:43 UTC
Re: [Xen-devel] PATCH: ability to send sysrqs to Linux domains
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/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel