[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel] [PATCH] Provides right frequency_ratio for VTi domain


  • To: <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>, "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>
  • From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
  • Date: Tue, 21 Feb 2006 09:51:10 +0800
  • Delivery-date: Tue, 21 Feb 2006 02:04:14 +0000
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AcY2iUmVVLxo638rQsOr4EOqAwzYWw==
  • Thread-topic: [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.patch
Description: adjust_freq_ratio.patch

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.