* [uml-devel] Regarding UML system call implementation
@ 2007-03-15 13:10 Krishnappa Abhijith-A21204
2007-03-16 2:35 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Krishnappa Abhijith-A21204 @ 2007-03-15 13:10 UTC (permalink / raw)
To: user-mode-linux-devel
[-- Attachment #1.1: Type: text/plain, Size: 612 bytes --]
Hi,
I have a question regarding system call implementation on
Linux
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... ?
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 ?
I think by ptracing itself UML will come to know when the system ended
so that it can fill in the system_ call retrun value to the process
context.
Please let me know...
Thanks a lot.
Thanks,
Abhi
[-- Attachment #1.2: Type: text/html, Size: 2322 bytes --]
[-- Attachment #2: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #3: Type: text/plain, Size: 194 bytes --]
_______________________________________________
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] 2+ messages in thread
* Re: [uml-devel] Regarding UML system call implementation
2007-03-15 13:10 [uml-devel] Regarding UML system call implementation Krishnappa Abhijith-A21204
@ 2007-03-16 2:35 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2007-03-16 2:35 UTC (permalink / raw)
To: Krishnappa Abhijith-A21204; +Cc: user-mode-linux-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-16 2:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15 13:10 [uml-devel] Regarding UML system call implementation Krishnappa Abhijith-A21204
2007-03-16 2:35 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox