All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Rogers <ian.rogers@manchester.ac.uk>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net,
	Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] Using SKAS, any examples?
Date: Mon, 09 May 2005 19:09:44 +0100	[thread overview]
Message-ID: <427FA768.6030409@manchester.ac.uk> (raw)
In-Reply-To: <200505091708.30730.blaisorblade@yahoo.it>

Hi,

Thanks for the help and I'm feeling encouraged again to try this through 
skas. I still have some thoughts though.

>>I hope to look into creating a patch to allow multiple segments in a
>>linux process. So an extension to skas on i386 and I can get my %fs wish
>>:-)
>>    
>>
>Well, it should be already doable in SKAS, with PTRACE_LDT (which relates to 
>modify_ldt() the same way that writing DO_MMAP relates to mmap()). Then, 
>after *setting* an appropriate descriptor in %fs (with PTRACE_POKEUSR if you 
>need), you're done.
>  
>
The LDT will give me a base address for the linear address used by the 
user process (I imagine this will be 0), but it won't do anything about 
the page table set up. I believe, the process may not work as the linear 
address can only be 32-bit. I thought there were extensions around this 
but it seems not. What I'd like would look like "Figure 3-28. Memory 
Management Convention That Assigns a Page Table
to Each Segment" in **"IA-32 Intel Architecture Software Developer's 
Manual, Volume 3: System Programming Guide". I think on a 32-bit machine 
to access multiple 4GB segments isn't possible, CR3 (PDBR) is shared by 
all segments and so the PDE's must just carve up the 4GB linear address 
space. It would be nice if CR3 (PDBR) were part of the selector. I could 
have more success on a 64bit machine...**

>Well, I've proposed some time ago to use segmentation for UML, but the 
>proposal was dropped "because an access through segmentation is a little 
>slower".
>
>Quite frankly, I'm quite unconvinced (because any access passes through 
>segmentation, even if normally segments have a 0 base and a disabled limit); 
>beyond, Xen uses segmentation in the same way that I was proposing for UML, 
>IIRC.
>  
>
I agree. The mechanism can be tested out and then reverted if it is 
hurting performance. Thanks again for the help and examples,

Ian Rogers


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-05-09 18:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-04  9:28 [uml-devel] Using SKAS, any examples? Ian Rogers
2005-05-04 13:27 ` Jeff Dike
2005-05-04 14:49   ` Ian Rogers
2005-05-04 19:03     ` Blaisorblade
2005-05-05 17:03   ` Ian Rogers
2005-05-07  3:11     ` Jeff Dike
2005-05-07 20:31       ` Ian Rogers
2005-05-08 17:02         ` Blaisorblade
2005-05-08 18:09           ` Ian Rogers
2005-05-09 15:08             ` Blaisorblade
2005-05-09 18:09               ` Ian Rogers [this message]
2005-05-07 15:28     ` 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=427FA768.6030409@manchester.ac.uk \
    --to=ian.rogers@manchester.ac.uk \
    --cc=blaisorblade@yahoo.it \
    --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.