* [PATCH 19/19] UML - Make mconsole version requests happen in a process
@ 2006-07-07 0:33 Jeff Dike
2006-07-07 15:31 ` [uml-devel] [PATCH 19/19] UML - Make mconsole version requestshappen " Brock, Anthony - NET
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2006-07-07 0:33 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, user-mode-linux-devel
Handling a host mconsole version request must be done in a process context
rather than interrupt context now that utsname information can be
process-specific rather than global.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: linux-2.6.16/arch/um/drivers/mconsole_user.c
===================================================================
--- linux-2.6.16.orig/arch/um/drivers/mconsole_user.c
+++ linux-2.6.16/arch/um/drivers/mconsole_user.c
@@ -18,7 +18,12 @@
#include "umid.h"
static struct mconsole_command commands[] = {
- { "version", mconsole_version, MCONSOLE_INTR },
+ /* With uts namespaces, uts information becomes process-specific, so
+ * we need a process context. If we try handling this in interrupt
+ * context, we may hit an exiting process without a valid uts
+ * namespace.
+ */
+ { "version", mconsole_version, MCONSOLE_PROC },
{ "halt", mconsole_halt, MCONSOLE_PROC },
{ "reboot", mconsole_reboot, MCONSOLE_PROC },
{ "config", mconsole_config, MCONSOLE_PROC },
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [uml-devel] [PATCH 19/19] UML - Make mconsole version requestshappen in a process
2006-07-07 0:33 [PATCH 19/19] UML - Make mconsole version requests happen in a process Jeff Dike
@ 2006-07-07 15:31 ` Brock, Anthony - NET
2006-07-07 16:58 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Brock, Anthony - NET @ 2006-07-07 15:31 UTC (permalink / raw)
To: Jeff Dike, akpm; +Cc: linux-kernel, user-mode-linux-devel
So what impact does this have on the following quote from
http://user-mode-linux.sourceforge.net/mconsole.html :
It's a simple no-op which can be used to check that a UML is running.
It's also a way of sending an interrupt to the UML. This is sometimes
useful on SMP hosts, where there's a bug which causes signals to UML to
be lost, often causing it to appear to hang. Sending such a UML the
mconsole version command is a good way to 'wake it up' before networking
has been enabled, as it does not do anything to the function of the UML.
I'm running UML on an SMP machine, but have never encountered the "hang"
issue. Is this text still accurate? Also, can this command still be used
to "wake up" a UML process? Is this still the recommended means for
verifying that a UML process if running?
Tony
> -----Original Message-----
> From: user-mode-linux-devel-bounces@lists.sourceforge.net
> [mailto:user-mode-linux-devel-bounces@lists.sourceforge.net]
> On Behalf Of Jeff Dike
> Sent: Thursday, July 06, 2006 5:34 PM
> To: akpm@osdl.org
> Cc: linux-kernel@vger.kernel.org;
> user-mode-linux-devel@lists.sourceforge.net
> Subject: [uml-devel] [PATCH 19/19] UML - Make mconsole
> version requestshappen in a process
>
> Handling a host mconsole version request must be done in a
> process context
> rather than interrupt context now that utsname information can be
> process-specific rather than global.
>
> Signed-off-by: Jeff Dike <jdike@addtoit.com>
>
> Index: linux-2.6.16/arch/um/drivers/mconsole_user.c
> ===================================================================
> --- linux-2.6.16.orig/arch/um/drivers/mconsole_user.c
> +++ linux-2.6.16/arch/um/drivers/mconsole_user.c
> @@ -18,7 +18,12 @@
> #include "umid.h"
>
> static struct mconsole_command commands[] = {
> - { "version", mconsole_version, MCONSOLE_INTR },
> + /* With uts namespaces, uts information becomes
> process-specific, so
> + * we need a process context. If we try handling this
> in interrupt
> + * context, we may hit an exiting process without a valid uts
> + * namespace.
> + */
> + { "version", mconsole_version, MCONSOLE_PROC },
> { "halt", mconsole_halt, MCONSOLE_PROC },
> { "reboot", mconsole_reboot, MCONSOLE_PROC },
> { "config", mconsole_config, MCONSOLE_PROC },
>
>
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] [PATCH 19/19] UML - Make mconsole version requestshappen in a process
2006-07-07 15:31 ` [uml-devel] [PATCH 19/19] UML - Make mconsole version requestshappen " Brock, Anthony - NET
@ 2006-07-07 16:58 ` Jeff Dike
2006-07-07 17:07 ` [uml-devel] [PATCH 19/19] UML - Make mconsole versionrequestshappen " Brock, Anthony - NET
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2006-07-07 16:58 UTC (permalink / raw)
To: Brock, Anthony - NET; +Cc: akpm, linux-kernel, user-mode-linux-devel
On Fri, Jul 07, 2006 at 08:31:50AM -0700, Brock, Anthony - NET wrote:
> I'm running UML on an SMP machine, but have never encountered the "hang"
> issue. Is this text still accurate?
No, it's ancient history. No one ever figured out what the problem was,
but it hasn't been seen in ages.
> Also, can this command still be used
> to "wake up" a UML process? Is this still the recommended means for
> verifying that a UML process if running?
No, and no.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [uml-devel] [PATCH 19/19] UML - Make mconsole versionrequestshappen in a process
2006-07-07 16:58 ` Jeff Dike
@ 2006-07-07 17:07 ` Brock, Anthony - NET
2006-07-07 19:58 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Brock, Anthony - NET @ 2006-07-07 17:07 UTC (permalink / raw)
To: Jeff Dike; +Cc: akpm, linux-kernel, user-mode-linux-devel
> -----Original Message-----
> > Also, can this command still be used
> > to "wake up" a UML process? Is this still the recommended means for
> > verifying that a UML process if running?
>
> No, and no.
What is the recommended means for verifying that a UML process is
running?
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] [PATCH 19/19] UML - Make mconsole versionrequestshappen in a process
2006-07-07 17:07 ` [uml-devel] [PATCH 19/19] UML - Make mconsole versionrequestshappen " Brock, Anthony - NET
@ 2006-07-07 19:58 ` Jeff Dike
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Dike @ 2006-07-07 19:58 UTC (permalink / raw)
To: Brock, Anthony - NET; +Cc: akpm, linux-kernel, user-mode-linux-devel
On Fri, Jul 07, 2006 at 10:07:25AM -0700, Brock, Anthony - NET wrote:
> What is the recommended means for verifying that a UML process is
> running?
Depends on what level of "running" you want to check for. Ping will
tell you if the kernel can respond to interrupts. mconsole version
(now) will tell you whether it can schedule processes. mconsole sysrq
is another way to check that it is alive enough to respond to
interrupts.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-07 19:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-07 0:33 [PATCH 19/19] UML - Make mconsole version requests happen in a process Jeff Dike
2006-07-07 15:31 ` [uml-devel] [PATCH 19/19] UML - Make mconsole version requestshappen " Brock, Anthony - NET
2006-07-07 16:58 ` Jeff Dike
2006-07-07 17:07 ` [uml-devel] [PATCH 19/19] UML - Make mconsole versionrequestshappen " Brock, Anthony - NET
2006-07-07 19:58 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox