From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Alex LIU <alex.liu@st.com>, 'Jeff Dike' <jdike@addtoit.com>
Subject: Re: [uml-devel] Question about the kernel thread in UML TT mode
Date: Thu, 19 May 2005 15:31:30 +0200 [thread overview]
Message-ID: <200505191531.31247.blaisorblade@yahoo.it> (raw)
In-Reply-To: <000c01c55c59$37dd1e50$9eb3c68a@SHZ.ST.COM>
On Thursday 19 May 2005 11:57, Alex LIU wrote:
> On May 18, 2005 9:31 PM, Jeff wrote:
> >> But P and Q are different threads and they will be scheduled
> >> differently,right?
> > No, they're two different ways of looking at the same thread. They're
> > scheduled somewhat differently, but that's just reflecting the two ways
> > of
> looking at it. If it's runnable on the host, it's runnable inside UML, but
> not the other way around.
> Then how does the UML thread interact with its corresponding host thread in
> TT mode? Also use the switch_pipe?
> >> And in the function outer_tramp, the thread A see the thread B was
> >> stopped with a SIGSTOP signal. Why? Since the thread B is blocked by
> >> the signal SIGUSR1...
> > The handler calls suspend_new_thread, which stops itself.
> Exactly! I'm wrong...
> Then I have another question:
> In UML function new_thread_handler, the current sigcontext is defined as
> following:
> UPT_SC(¤t->thread.regs.regs) = (void *) (&sig + 1);
> Why? What does "&sig + 1" mean?
I think that's because sig is on the stack, and &sig + 1 points to the datas
saved by the kernel when entering the signal handler, i.e. the registers of
the caller, saved to be restored on return.
--
Paolo Giarrusso, aka Blaisorblade
Skype user "PaoloGiarrusso"
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next parent reply other threads:[~2005-05-19 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <000c01c55c59$37dd1e50$9eb3c68a@SHZ.ST.COM>
2005-05-19 13:31 ` Blaisorblade [this message]
2005-05-19 14:56 ` [uml-devel] Question about the kernel thread in UML TT mode Jeff Dike
2005-05-17 9:38 Alex LIU
2005-05-17 15:53 ` Jeff Dike
[not found] ` <000e01c55b91$039466d0$9eb3c68a@SHZ.ST.COM>
2005-05-18 13:31 ` Jeff Dike
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=200505191531.31247.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=alex.liu@st.com \
--cc=jdike@addtoit.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