From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net,
Young Koh <young.koh@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] copy_from_user in SKAS mode
Date: Thu, 19 May 2005 15:41:54 +0200 [thread overview]
Message-ID: <200505191541.54932.blaisorblade@yahoo.it> (raw)
In-Reply-To: <3524bf1f0505181534a2436e7@mail.gmail.com>
On Thursday 19 May 2005 00:34, Young Koh wrote:
> Ok, let me have an example.
>
> suppose a user argument has virtual address 0xa0, corresponding UML
> physical address 0xb0, and real physical address 0x10. so, when the
> user process tries to access 0xa0 for the first time, the UML kernel
> should let host kernel know there will be 0xa0 -> 0x10 mapping.
Yes, and we only need to know the 0xa0 -> 0xb0 mapping... We currently use a
2/3-level page table mechanism to do this lookup, to answer the latter
question, even if we could choice any lookup mechanism, even a hash table if
there were the need.
Also note that these numbers are unrealistic since we map one page (4k) at a
time.
> how
> does the UML kernel make another process's address map to the same
> physical page it has?
UML physical address are actually the offsets inside the memory backing file.
Then the guest has simply to execute an mmap from this file with the "Uml
physical address" as the offset; in TT mode it's done directly, in SKAS3 mode
this is done by writing a MM_MMAP request into host's /proc/mm, in SKAS0 this
is executed by the stub calling mmap() directly.
> and how does the UML kernel keep track of 0xa0
> -> 0xb0 mapping? maybe the same page table mechanism as host Linux? (i
> guess so, though)
--
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
prev parent reply other threads:[~2005-05-19 13:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-17 23:33 [uml-devel] copy_from_user in SKAS mode Young Koh
2005-05-18 1:18 ` Jeff Dike
2005-05-18 13:47 ` Young Koh
2005-05-18 15:08 ` Jeff Dike
2005-05-18 22:34 ` Young Koh
2005-05-19 13:41 ` Blaisorblade [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=200505191541.54932.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=young.koh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.