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] Fix vmx_vcpu_thash()

To: "Tristan Gingold" <tgingold@xxxxxxx>
Subject: RE: [Xen-ia64-devel] [PATCH] Fix vmx_vcpu_thash()
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Tue, 12 Jun 2007 12:32:44 +0800
Cc: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 11 Jun 2007 21:30:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070612040203.GC2540@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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acespb8C6LTQoC6+TXiWhMjfDgDb0wABGr7Q
Thread-topic: [Xen-ia64-devel] [PATCH] Fix vmx_vcpu_thash()
>Hi,
>
>unfortunatly this is not true for me.  I don't think I can install the
>newest PAL and I use long format vhpt in vti mode.
>
>We can either:
>* just add a comment saying the code is a work-around to be fixed.
>* test PAL version and enable work-around if the version is too recent.
>* replace calls to PAL_VPS_THASH and PAL_VPS_TTAG by our own code.
>* ??
>
Does following patch meet your need?

     if(vpta.vf){
         pval = ia64_call_vsa(PAL_VPS_THASH, vadr, vrr.rrval,
                              vpta.val, 0, 0, 0, 0);
+  this is a work-around, this check will be removed.
+               if(pval-(vpta.val&~0x7fff) >= (1UL << vpta.size)){
+               pval = (vpta.val & ~0x7FFF) | (pval & ((1UL <<
vpta.size) - 1));
+               }
     }else{


- Anthony

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