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] PATCH: rewrite vcpu_get_psr

To: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Subject: RE: [Xen-ia64-devel] PATCH: rewrite vcpu_get_psr
From: tgingold@xxxxxxx
Date: Fri, 11 May 2007 11:53:58 +0200
Cc: Xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 11 May 2007 02:52:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <51CFAB8CB6883745AE7B93B3E084EBE2B53E26@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <51CFAB8CB6883745AE7B93B3E084EBE2B53E26@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) 3.2.5
Quoting "Xu, Anthony" <anthony.xu@xxxxxxxxx>:
> Machine psr dt it rt are always 1.
Sure!

> While this code segment is used to emulate guest execution of "mov from psr"
> From the view of guest OS, vpsr dt it rt can be any value.
It depends on how these bits are used.

> In xenodomaim,
> There are only two situations.
> Virtual mode;  vpsr.it=dt=rt=1.
> Physical mode: vpsr.dt=0, vpsr.it=vpsr.rt=1, which happens in linux OS tlb
> fault
> related handlers.

vpsr.it=dt=rt=0 is also supported (initial boot and possibly PAL calls).

Should vpsr.dt set metaphysical mode and other bits ignored ?

But Xen should be coherent on this point.

>
> In vti-domain.
> We support more situations except for above two.
>
> Vpsr.it=dt=rt=0, this happens when guest calls PAL call, which can be called
> only
> in physical mode.
>
> Vpsr.it=rt=0, vpsr.dt=1, this happens at the very beginning of windows boot.
Interesting!

Tristan.

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