From: Mark Williamson Subject: Re: [bug?] xm sysrq == Internal Server Error Date: Mon, 28 Mar 2005 18:59:26 +0000 Message-ID: <200503281959.26563.maw48@cl.cam.ac.uk> References: <001101c5315d$ef984320$0201a8c0@hawk> <200503281702.54350.maw48@cl.cam.ac.uk> <001e01c533c0$afafd240$0201a8c0@hawk> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_OQFSCgQ9bnVULUT" Return-path: In-Reply-To: <001e01c533c0$afafd240$0201a8c0@hawk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Christopher S. Aker" Cc: xen-devel@lists.xensource.com, Mark Williamson List-Id: xen-devel@lists.xenproject.org --Boundary-00=_OQFSCgQ9bnVULUT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for sending to the correct list, unlike me ;-) > > Is this fixed for you yet? Searching my mail archives, I don't see > > evidence for / against it having been dealt with. > No, not yet. I'd be happy to test any patches. Great! Please apply the attached patches (against 2.0-testing, should work with other 2.0 releases) and rebuild / reinstall the tools. The existing kernel / Xen should work OK with these. Compile tested only, so YMMV ;-) Cheers, Mark --Boundary-00=_OQFSCgQ9bnVULUT Content-Type: text/x-diff; charset="iso-8859-1"; name="tools-sysrq.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tools-sysrq.patch" --- xen-2.0-testing.bk/tools/python/xen/lowlevel/xu/xu.c 2005-03-28 18:38:57.606242115 +0000 +++ xen-2.0-testing-sysrq.bk/tools/python/xen/lowlevel/xu/xu.c 2005-03-28 18:49:27.942757972 +0000 @@ -671,6 +671,9 @@ P2C(mem_request_t, target, u32); P2C(mem_request_t, status, u32); break; + case TYPE(CMSG_SHUTDOWN, CMSG_SHUTDOWN_SYSRQ): + P2C(shutdown_sysrq_t, key, char); + break; } if ( dict_items_parsed != PyDict_Size(payload) ) --Boundary-00=_OQFSCgQ9bnVULUT Content-Type: text/x-diff; charset="iso-8859-1"; name="xen-sysrq.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-sysrq.patch" --- xen-2.0-testing.bk/xen/include/public/io/domain_controller.h 2005-03-28 18:38:58.151183771 +0000 +++ xen-2.0-testing-sysrq.bk/xen/include/public/io/domain_controller.h 2005-03-28 18:43:29.308152888 +0000 @@ -545,6 +545,10 @@ /* SHUTDOWN_suspend. */ #define CMSG_SHUTDOWN_SYSRQ 3 +typedef struct { + char key; /* 0: sysrq key */ + char __pad[3]; /* 1: */ +} PACKED shutdown_sysrq_t; /* 4 bytes */ /****************************************************************************** * MEMORY CONTROLS --Boundary-00=_OQFSCgQ9bnVULUT Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_OQFSCgQ9bnVULUT--