From: Jeff Dike <jdike@addtoit.com>
To: Haifeng He <hehaifeng@gmail.com>
Cc: User-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Question about trap handling in UML kernel
Date: Wed, 11 Apr 2007 22:35:35 -0400 [thread overview]
Message-ID: <20070412023535.GA18095@c2.user-mode-linux.org> (raw)
In-Reply-To: <3aab51dc0704111910p54a3066aref3663180003d671@mail.gmail.com>
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
prev parent reply other threads:[~2007-04-12 2:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-12 2:10 [uml-devel] Question about trap handling in UML kernel Haifeng He
2007-04-12 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=20070412023535.GA18095@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=User-mode-linux-devel@lists.sourceforge.net \
--cc=hehaifeng@gmail.com \
/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