Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] GET_THIS_PADDR appears to be broken

To: Tristan Gingold <tgingold@xxxxxxx>
Subject: Re: [Xen-ia64-devel] GET_THIS_PADDR appears to be broken
From: Tristan Gingold <tgingold@xxxxxxx>
Date: Thu, 28 Jun 2007 05:14:57 +0200
Cc: Alex Williamson <alex.williamson@xxxxxx>, Yutaka Ezaki <yutaka.ezaki@xxxxxxxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 27 Jun 2007 20:07:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070628030741.GA2578@saphi>
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: <20070627095955.GA1268@xxxxxxxxxxxx> <1182946760.468255c87ae88@xxxxxxxxxxx> <20070627133844.GA2100@xxxxxxxxxxxx> <20070628030741.GA2578@saphi>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Jun 28, 2007 at 05:07:41AM +0200, Tristan Gingold wrote:
> On Wed, Jun 27, 2007 at 10:38:44PM +0900, Horms wrote:
> > On Wed, Jun 27, 2007 at 02:19:20PM +0200, tgingold@xxxxxxx wrote:
> > > Quoting Horms <horms@xxxxxxxxxxxx>:
> > > 
> > > > GET_THIS_PADDR() doesn't appear to work correclty
> > > > on xen-ia64-unstable.hg 15165:96331db61e47
> > > >
> > > > Long-winded description of why
> > > >
> > > >   cpu_data           = 0xf000000004410000
> > > >   ia64_tpa(cpu_data) = 0x0000000004410000
> > > >   __per_cpu_start    = 0x0003ffffffff0000
> > > >
> > > >   ia64_set_kr(IA64_KR_PER_CPU_DATA,
> > > >               ia64_tpa(cpu_data) - (long) __per_cpu_start);
> > > >   ar.k3              = ia64_tpa(cpu_data) - __per_cpu_start;
> > > >                      = 0x0000000004410000 - 0xf000000004410000
> > > >                    = 0x0f00000004420000 # N.B Underflow
> > > 
> > > I am lost here :-(  I though ar.kX were reserved by the domains.
> 
> In fact ar.kr3 is set by SET_PER_CPU_DATA in mca_asm.S
> Not anymore lost ;-)

and therefore you weren't looking at the correct assignment of kr3!

Tristan.

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