Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1DTLB6-0007Cq-Ku for User-mode-linux-devel@lists.sourceforge.net; Wed, 04 May 2005 07:48:44 -0700 Received: from mailhost.cs.man.ac.uk ([130.88.192.14]) by sc8-sf-mx2.sourceforge.net with esmtp (Exim 4.41) id 1DTLB5-0001zB-5S for User-mode-linux-devel@lists.sourceforge.net; Wed, 04 May 2005 07:48:44 -0700 Received: from trinidad ([130.88.195.238]) by mailhost with esmtp (Exim 4.14) id 1DTLAT-00043U-4K for User-mode-linux-devel@lists.sourceforge.net; Wed, 04 May 2005 15:48:05 +0100 Message-ID: <4278E113.9040109@manchester.ac.uk> From: Ian Rogers MIME-Version: 1.0 Subject: Re: [uml-devel] Using SKAS, any examples? References: <427895BC.2050201@manchester.ac.uk> <20050504132701.GA3755@ccure.user-mode-linux.org> In-Reply-To: <20050504132701.GA3755@ccure.user-mode-linux.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 04 May 2005 15:49:55 +0100 To: User-mode-linux-devel@lists.sourceforge.net Jeff Dike wrote: >On Wed, May 04, 2005 at 10:28:28AM +0100, Ian Rogers wrote: > > >>What I'm hoping to do is to use SKAS to create a second address >>space I can, map, unmap, peek and poke from the first. The reason for >>this is to allow an emulator to live in the first address space and the >>emulated data... to live in the second. >> >> > >UML obviously does this. Look at arch/um/kernel/skas/mem_user.c for the >basic primitives. The creation and destruction of address spaces is done >in arch/um/kernel/skas/mmu.c. > > I've had a play with a simple test, but I need to work further on it. mem_user.c seems clear enough but I am slightly baffled by what is happening with the file descriptors in mmu.c. > > >>I hope to be able to access the >>second by altering the i386 selector value. >> >> > >What's the i386 selector value? > > I hope, for example, to set LDT 0 to point to the second address space. I can then swap the value of 7 (index 0, LDT, ring 3) into fs or gs whenever I hope to address the second address space. I can do similar code with modify_ldt but I'm restricted to using mmap to allocate memory and therefore I don't get a fully addressable 4gb address space. Thanks for your help, 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