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 via email to