From: Blaisorblade <blaisorblade@yahoo.it>
To: Abhay Raghu <abhay_raghu@yahoo.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: gdb and uml
Date: Wed, 3 May 2006 15:55:35 +0200 [thread overview]
Message-ID: <200605031555.36529.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20060501155706.28604.qmail@web31206.mail.mud.yahoo.com>
On Monday 01 May 2006 17:57, Abhay Raghu wrote:
> i) Can you please explain the difference between PTRACE_SYSCALL and
> PTRACE_SYSEMU?
Download latest man-pages (at least 2.27) and read man 2 ptrace; if something
is not clear, I'll answer to your further doubts.
> ii) This question is related to uml: How do all applications run within a
> single userspace thread?
Doing context switching is fairly easy: with ptrace you change all registers
and so on. I guess you know that, if I'm wrong feel free to ask.
There is a further problem however: different apps have different address
spaces, with different mappings (or different memory images, they're running
different executables with different libraries... there are various way to
say this).
To solve this problem, we introduce on the host the SKAS3 patch whihch allows
one process to have multiple address spaces - only one is in use, but via
ptrace(PTRACE_SWITCH_MM) we can replace that one with another one - this is
done by making a pointer in the process descriptor (i.e. current in Linux
kernel code) point to another "mapping set" (called struct mm_struct), so
it's very fast; you must also invalidate the TLB (i.e. the processor caches
of page table entries) like on any "memory context switching", obviously.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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:[~2006-05-03 13:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060501155706.28604.qmail@web31206.mail.mud.yahoo.com>
2006-05-03 13:55 ` Blaisorblade [this message]
[not found] <20060426182144.71082.qmail@web31203.mail.mud.yahoo.com>
2006-04-27 12:30 ` [uml-devel] Re: gdb and uml Blaisorblade
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=200605031555.36529.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=abhay_raghu@yahoo.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