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

[Xen-ia64-devel] [PATCH] Provides right frequency ratio and base for VTi

To: <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>, "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>
Subject: [Xen-ia64-devel] [PATCH] Provides right frequency ratio and base for VTi domain
From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Date: Tue, 21 Feb 2006 16:31:47 +0800
Delivery-date: Tue, 21 Feb 2006 08:45:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: AcY2iUmVVLxo638rQsOr4EOqAwzYWwANkAfg
Thread-topic: [PATCH] Provides right frequency ratio and base for VTi domain
Hi Dan,
Sorry for last mail, and the patch in last mail don't provide frequency base 
support, so please check in this one and drop the last one.
Thanks  
     Xiantao
CSD-OTC PRC Virtualization 
Intel (China) Limited 

-----Original Message-----
From: Zhang, Xiantao 
Sent: 2006年2月21日 9:51
To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx; 'Magenheimer, Dan (HP Labs Fort 
Collins)'
Cc: Yu, Ke
Subject: [PATCH] Provides right frequency_ratio for VTi domain

Hi Dan,
        This patch handles the pal_freq_ratio request breaked to Xen by GFW for 
VTi domain. and it fixed the wrong frequency_ratio of VTi domian.So,with this 
patch, VTi domain can get the right time , itc, cpu frequency and other kernel 
params rely on right frequency_ratio. Please help to check in. thx.

Signed-off-by: Zhang xiantao <xiantao.zhang@xxxxxxxxx> 
Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>
diff -r 1507c5499a92 xen/arch/ia64/vmx/pal_emul.c
--- a/xen/arch/ia64/vmx/pal_emul.c      Fri Jan  6 18:39:28 2006
+++ b/xen/arch/ia64/vmx/pal_emul.c      Tue Feb 21 09:02:29 2006
@@ -19,7 +19,7 @@
  */
 
 #include <asm/vmx_vcpu.h>
-
+#include <asm/pal.h>
 static void
 get_pal_parameters (VCPU *vcpu, UINT64 *gr29,
                        UINT64 *gr30, UINT64 *gr31) {
@@ -184,6 +184,10 @@
 
 static struct ia64_pal_retval
 pal_freq_ratios(VCPU *vcpu){
+    struct ia64_pal_retval result;
+
+    PAL_CALL(result,PAL_FREQ_RATIOS, 0, 0, 0);
+    return result;
 }
 
 static struct ia64_pal_retval
@@ -269,6 +273,10 @@
                        
                case PAL_PLATFORM_ADDR:
                        result = pal_platform_addr (vcpu);
+                       break;
+         
+               case PAL_FREQ_RATIOS:
+                       result = pal_freq_ratios (vcpu);
                        break;
 
                default:
Thanks  
     Xiantao
CSD-OTC PRC Virtualization 
Intel (China) Limited 

Attachment: adjust_freq_ratio_and_base_for_vti.patch
Description: adjust_freq_ratio_and_base_for_vti.patch

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