All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Can Sar <csar@stanford.edu>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Making UML Single Threader
Date: Tue, 8 Nov 2005 18:35:47 -0600	[thread overview]
Message-ID: <200511081835.47575.rob@landley.net> (raw)
In-Reply-To: <4A8812BF-70D2-451C-9E9F-4502ED468120@stanford.edu>

On Tuesday 08 November 2005 01:44, Can Sar wrote:
> > Why?
>
> Trust me, I wouldn't do this if it were not for a reason. I have no
> intention of marketing this as a general purpose alternative to
> Linux. It's to check Linux for errors.

I just don't understand your potential use case.  (I've seen some really weird 
things done in embedded systems, and done a few myself, but I don't 
understand what the advantage is here...)

> >> So I don't care about systemcall interception or anything like that,
> >
> > *blink*  *blink*
> >
> > Ok, you want user mode linux, but you don't want it to actually run
> > user
> > processes, nor do want it to be able to intercept system calls.
> >
> > Um...  What's left?
>
> The ability to call the kernel implementation of some system calls
> and then halt the kernel.

Ah!  So you want the ability to test some kernel code, printf the result, and 
exit.  Right.  (And a kernel module doesn't do this because...?)

Jeff was going to split out the scheduler and filesystem into shared libraries 
or some such.  He mentions it in his intermittent diary, among other places.  
(Check the April 22 entry, for example):
http://user-mode-linux.sourceforge.net/diary.html
Also projects mentions it towards the end:
http://user-mode-linux.sourceforge.net/projects.html

I haven't really followed that work because I never had a use for it.  If I 
had to chop out kernel functions to run standalone, I'd guess your best bet 
is probably reading through starting from main() (in arch/um/kernel/main.c) 
and seeing at what point it's initialized enough stuff that you can do what 
you want.  (Assuming you don't need to do I/O or handle interrupts, and are 
doing single processor, then your big worry is probably memory allocation?  
I'm guessing here.)

Rob

P.S. What on earth is CONFIG_CMDLINE_ON_HOST?  It doesn't seem to ever be set 
anywhere, by anything...


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-11-09  0:35 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-06 23:23 [uml-devel] Does UML 2.6.14 work under x86-64? Rob Landley
2005-11-07 16:25 ` Jeff Dike
2005-11-07 19:32 ` Blaisorblade
2005-11-07 14:38   ` David Lang
2005-11-07 19:44   ` Blaisorblade
2005-11-08  0:53   ` Rob Landley
2005-11-07 14:47     ` David Lang
2005-11-07 15:30       ` David Lang
2005-11-08  3:39       ` Rob Landley
2005-11-08  5:13 ` [uml-devel] Making UML Single Threader Can Sar
2005-11-08  7:09   ` Rob Landley
2005-11-08  7:44     ` Can Sar
2005-11-09  0:35       ` Rob Landley [this message]
2005-11-09  0:48         ` Blaisorblade
2005-11-09  1:17           ` Rob Landley
2005-11-09  1:31             ` Blaisorblade
2005-11-09  3:18               ` Rob Landley
2005-11-10  4:18                 ` Jeff Dike
2005-11-10  4:58                   ` Rob Landley
2005-11-10  6:23                     ` Henrik Nordstrom
2005-11-10  4:07         ` Jeff Dike
2005-11-10  3:55           ` Rob Landley
2005-11-08 15:46     ` Jeff Dike
2005-11-09  0:27       ` Rob Landley
2005-11-14 13:59       ` Nix
2005-11-14 19:37         ` Blaisorblade
2005-11-14 20:00           ` Nix
2005-11-14 20:05             ` Geert Uytterhoeven
2005-11-15 11:39           ` Henrik Nordstrom
2005-11-16  1:23             ` Rob Landley
2005-11-08 16:13     ` Blaisorblade
2005-11-09  0:51       ` Rob Landley
2005-11-08 15:43   ` Jeff Dike
2005-11-08 16:10     ` Blaisorblade
2005-11-08 19:11     ` Can Sar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200511081835.47575.rob@landley.net \
    --to=rob@landley.net \
    --cc=csar@stanford.edu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.