linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Krishnappa Abhijith-A21204 <abhijith@motorola.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Regarding UML system call implementation
Date: Thu, 15 Mar 2007 22:35:12 -0400	[thread overview]
Message-ID: <20070316023512.GB8635@c2.user-mode-linux.org> (raw)
In-Reply-To: <0A01463223B8164194908CAC85B66A1201A974B0@ZMY16EXM67.ds.mot.com>

On Thu, Mar 15, 2007 at 09:10:05PM +0800, Krishnappa Abhijith-A21204 wrote:
> In order to execute the system call in user space, the process is made
> to execute the system call switch on its kernel stack 
> Why this is done... ?

Because all kernel code has to run on a kernel stack.

> Also UML queues a signal ( SIGUSR ) to the process in order to make it
> run on its kernel stack... is this the only reason why UML queue system
> call ?

It appears that you are looking at the tt mode code, which is
obsolete.  If you're interested in this for it's own sake, that's
fine, but the skas side of things is much more sane.

If you're referring to system call handling, you are correct.  The
signal is solely to get the process on its kernel stack.

skas mode, until somewhat recently, did something similar to get a new
process running on its kernel stack for the first time.  Now, it just
constructs the appropriate jmpbuf by hand and longjmps to it when it
needs to run.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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:[~2007-03-16  2:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15 13:10 [uml-devel] Regarding UML system call implementation Krishnappa Abhijith-A21204
2007-03-16  2:35 ` Jeff Dike [this message]

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=20070316023512.GB8635@c2.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=abhijith@motorola.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox