linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Question about trap handling in UML kernel
@ 2007-04-12  2:10 Haifeng He
  2007-04-12  2:35 ` Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: Haifeng He @ 2007-04-12  2:10 UTC (permalink / raw)
  To: User-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 761 bytes --]

Hi, All

I have a question about trap handling in UML kernel, particularly in the
skas0 mode.
My understanding is that, UML will fork a kernel thread for each user
process and
this thread will go to a loop (in userspace()) and wait for signal from user
process using
ptrace. If a signal occurs, it will call the signal handler to handle the
interrupt.
Is it correct?

My second question is, how many kernel threads are there in skas0 mode or I
should
ask how many different kinds of kernel threads will be created? Is there any
kernel thread
in UML other than those created for user process?

My last question is, given a kernel thread, if it is possible that the
execution of a thread will
be interrupted by others other than by scheduler?

Thank you

Haifeng

[-- Attachment #1.2: Type: text/html, Size: 1011 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] Question about trap handling in UML kernel
  2007-04-12  2:10 [uml-devel] Question about trap handling in UML kernel Haifeng He
@ 2007-04-12  2:35 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2007-04-12  2:35 UTC (permalink / raw)
  To: Haifeng He; +Cc: User-mode-linux-devel

On Wed, Apr 11, 2007 at 07:10:36PM -0700, Haifeng He wrote:

> I have a question about trap handling in UML kernel, particularly in the
> skas0 mode.
> My understanding is that, UML will fork a kernel thread for each user
> process

UML will fork a host process for each UML address space.

> and
> this thread will go to a loop (in userspace()) and wait for signal from user
> process using
> ptrace. If a signal occurs, it will call the signal handler to handle the
> interrupt.
> Is it correct?

Yes.

> My second question is, how many kernel threads are there in skas0 mode or I
> should
> ask how many different kinds of kernel threads will be created? Is there any
> kernel thread
> in UML other than those created for user process?

There are these kinds, assuming you mean host threads -
	kernel process, runs kernel code - one per virtual CPU
	user process, runs userspace code, one per address space
	utility threads, things that are useful to have in separate
threads, like the I/O thread and SIGIO thread.

> My last question is, given a kernel thread, if it is possible that the
> execution of a thread will
> be interrupted by others other than by scheduler?

If I understand the question, no.

				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-04-12  2:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-12  2:10 [uml-devel] Question about trap handling in UML kernel Haifeng He
2007-04-12  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