WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] how page faults are handled in paravirtualized xenguests

To: "Daniel Stodden" <stodden@xxxxxxxxxx>
Subject: Re: [Xen-devel] how page faults are handled in paravirtualized xenguests?
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Tue, 11 Mar 2008 10:43:59 -0400
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, tgh <wwwwww4187@xxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 11 Mar 2008 07:44:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=CYJOKRIFDwV2EvURK4p5vlXnK3eCpLNyEvQbpn0X8ig=; b=SemCuYgpv62TmwF/Xf2ypfE/vXsX5JKwk9uuvlXB7kxmvo3c3p/JW5+9okQuDvUldxjGP0i/5xY7krnqIM/Gte6KppYgu0AFaKTlVrgtubyyzrAeWJolzzBbOR7pAFhbZDaKh350dRpNrHJWribpqgT7wTyEOYqXAfToVRmHCi0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=UQEjs2x4N3npyYw20WOlRBMusegb2IAX+gV7lzfrO/PVuyOarvIYj8px21sza8dkssfXmXGLLUOC7SXUv1sJCnSXMsc36q4TvCsAbBUa+9kAd7DcnrMubAgQQWh6RWXqUJRnsQi1U+kHUu6SjgsUDw7JSPS09MIdwpYy/g+rkOQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1205216487.31220.10.camel@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C3F9C845.1DB90%keir.fraser@xxxxxxxxxxxxx> <47D5E29E.9030706@xxxxxxxxxxx> <1205216487.31220.10.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
some material says that guest kernel runs in ring 1 and applications in ring 3. Is this for x86 32 ?

On Tue, Mar 11, 2008 at 2:21 AM, Daniel Stodden <stodden@xxxxxxxxxx> wrote:
On Tue, 2008-03-11 at 09:38 +0800, tgh wrote:
> hi
>   and that is ,in 64-bit,guest application entry into guestos kernel
> directly through SYSCALL,or  not?

no, you can't. programs use syscall to enter the kernel, and the kernel
is using syscall to enter xen. since you can only configure one entry
point at a time (and both xen and applications run in ring 3 anyway),
xen is handling all syscalls, then checks the context it was issued
from, and forwards the call to to the guest kernel if it was user code.

regards,
daniel

--
Daniel Stodden
LRR     -      Lehrstuhl für Rechnertechnik und Rechnerorganisation
Institut für Informatik der TU München             D-85748 Garching
http://www.lrr.in.tum.de/~stodden         mailto:stodden@xxxxxxxxxx
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33  3D80 457E 82AE B0D8 735B



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel