Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DV7yR-0000W8-W8 for qemu-devel@nongnu.org; Mon, 09 May 2005 09:07:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DV7yO-0000U9-RR for qemu-devel@nongnu.org; Mon, 09 May 2005 09:07:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DV7yO-0000KY-AY for qemu-devel@nongnu.org; Mon, 09 May 2005 09:07:00 -0400 Received: from [130.88.192.14] (helo=mailhost.cs.man.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DV7vc-0006RS-J6 for qemu-devel@nongnu.org; Mon, 09 May 2005 09:04:08 -0400 Message-ID: <427F5E94.9050501@manchester.ac.uk> Date: Mon, 09 May 2005 13:59:00 +0100 From: Ian Rogers MIME-Version: 1.0 Subject: Re: [Qemu-devel] QVM86, SKAS.. many modules, one vision? References: <427F28CF.1030300@manchester.ac.uk> <200505091339.03936.paul@codesourcery.com> In-Reply-To: <200505091339.03936.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org Paul Brook wrote: >For user-mode emulation the largest chunk of address space is the translated >code buffer. This needs to be able to directly address the guest memory >space, so sharing a VM with the host qemu process isn't really a problem. We >just map the host qemu out of the way somewhere. This is different from >native UML where with SKAS you can run applications without any foreign areas >mapped into the guest address space. > > Yup, but if you are emulating more than just a user process (ie a whole OS), or you can't guarantee the security of the user process (ie it could go messing with the translation cache), then just mapping things elsewhere is just adopting the ostrich position. Multi-segments are an obvious way to solve this but currently there's little support in the OS. modify_ldt works quite well, you can hide the translation cache below it, but it means you can't map pages at the end of the address space. That's why some module support would be good. Regards, Ian Rogers