From: Young Koh <young.koh@gmail.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] copy_from_user in SKAS mode
Date: Wed, 18 May 2005 18:34:22 -0400 [thread overview]
Message-ID: <3524bf1f0505181534a2436e7@mail.gmail.com> (raw)
In-Reply-To: <20050518150802.GB18740@ccure.user-mode-linux.org>
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. how
does the UML kernel make another process's address map to the same
physical page it has? 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)
Thanks a lot!
On 5/18/05, Jeff Dike <jdike@addtoit.com> wrote:
> On Wed, May 18, 2005 at 09:47:37AM -0400, Young Koh wrote:
> > you mean "physical" to the UML kernel?
>
> Yes. To the host, it's just normal process virtual memory, but to UML,
> that's its physical memory.
>
> > Because the UML kernel cannot
> > know about the real physical pages in the host kernel, do you mean
> > the UML kernel finds out which its (virtual) address maps to the same
> > real physical page that the user process's address maps to? but the
> > UML kernel and the user process would have different mappings and
> > cannot know about each other (if so, its a protection violation
> > between processes) Could you explain a bit more? Thanks a lot!!!
>
> It's exactly the same as the host. There is physical memory mapped into
> its address space, and pages from that area are allocated and mapped into
> process address spaces as needed. In skas mode, UML has no direct access
> to the process address spaces (like the x86 4G/4G split), so it has to
> translate the process virtual address into a UML physical address, to which
> it does have access, and can copy the data.
>
> Jeff
>
-------------------------------------------------------
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_idt12&alloc_id\x16344&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-05-18 22:34 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 [this message]
2005-05-19 13:41 ` 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=3524bf1f0505181534a2436e7@mail.gmail.com \
--to=young.koh@gmail.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 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.