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-ia64-devel

Re: [Xen-ia64-devel] Why is cpl read as 0 in para-virtualization ?

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] Why is cpl read as 0 in para-virtualization ?
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Wed, 1 Mar 2006 17:19:08 +0100
Delivery-date: Wed, 01 Mar 2006 16:16:00 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <516F50407E01324991DD6D07B0531AD59FEB72@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <516F50407E01324991DD6D07B0531AD59FEB72@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Mercredi 01 Mars 2006 16:44, Magenheimer, Dan (HP Labs Fort Collins) a 
écrit :
> > Subject: [Xen-ia64-devel] Why is cpl read as 0 in
> > para-virtualization ?
> >
> > while I was modifying xen_early_setup, I tried to replace dcr
> > kludge using
> > cpl.  Unfortunatly, it doesn't work since cpl is read as 0
> > (see vcpu.c).
> > So my question is simple: why ?
>
> I think some places in Linux/ia64 determine whether code
> is running in kernel or user mode by checking psr.cpl.
Correct.
One place is user_mode() is ptrace.h.
Currently it is true if cpl != 0.  I have made a simple test: I have changed 
the code to cpl == 3, and cpl reads as 2.  Linux is booting (dom0+domU).

Tristan.


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

<Prev in Thread] Current Thread [Next in Thread>