From: Daniel Stodden Subject: Re: how page faults are handled in paravirtualized xenguests? Date: Tue, 11 Mar 2008 17:27:30 +0100 Message-ID: <1205252850.31220.77.camel@thinkpad.localdomain> References: <47D5E29E.9030706@sina.com.cn> <1205216487.31220.10.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weiming Cc: xen-devel , tgh , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Tue, 2008-03-11 at 10:37 -0500, weiming wrote: > and how can xen tell if the hypercall is from kernel space or user > space in x86_64? The VMM simply keeps track of it in software. Starting from kernel mode, an IRET will return to virtual user mode, a subsequent 'SYSCALL' will move control back to the kernel. hth, daniel --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B