From: Mathieu Ropert Subject: [RFC] x86_64 and protection Date: Fri, 24 Mar 2006 13:05:44 +0100 Message-ID: <4423E098.3080708@adviseo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, i'm trying to understand how protection with Xen on x86_64 has kernel and user code run on the same privilege level. Things i'm wondering: - As all kernel pages must mapped with USER bit, how do i make sure user process can't access them? Unmap all before switching to user mode? - How Xen makes the difference between a kernel and a user process? I think it use a software flag or something to handle syscall instruction properly (ie: processing hypercall or give control to kernel syscalls management depending on the caller). Some documentations on this would be great for future attempts to port other OS to Xen. Regards, Mathieu