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

[Xen-changelog] [IA64] Provides right frequency ratio and base for VTi domain



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 60aa296ccf4ca3a11591bc0bf0559604af10c93b
# Parent  111af742e414e174456bca5d0edbb47641031fe2
[IA64] Provides right frequency ratio and base for VTi domain

This patch handles the pal_freq_ratio and pal_freq_base request breaked
to Xen by GFW for VTi domain.  and it fixed the wrong frequency ratio
and base  of VTi domian.  So,i with this patch, VTi domian can get the
right time ,itc,cpu frequency, freqency base and other kernel params rely
on right frequency_ratio.

Signed-off-by: Zhang xiantao <xiantao.zhang@xxxxxxxxx>
Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>

diff -r 111af742e414 -r 60aa296ccf4c xen/arch/ia64/vmx/pal_emul.c
--- a/xen/arch/ia64/vmx/pal_emul.c      Sun Feb 19 04:25:31 2006
+++ b/xen/arch/ia64/vmx/pal_emul.c      Thu Feb 23 22:40:18 2006
@@ -19,6 +19,7 @@
  */
 
 #include <asm/vmx_vcpu.h>
+#include <asm/pal.h>
 
 static void
 get_pal_parameters (VCPU *vcpu, UINT64 *gr29,
@@ -180,10 +181,18 @@
 
 static struct ia64_pal_retval
 pal_freq_base(VCPU *vcpu){
+    struct ia64_pal_retval result;
+
+    PAL_CALL(result,PAL_FREQ_BASE, 0, 0, 0);
+    return result;
 }
 
 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
@@ -266,9 +275,17 @@
                case PAL_CACHE_WRITE:
                        result = pal_cache_write (vcpu);
                        break;
-                       
+
                case PAL_PLATFORM_ADDR:
                        result = pal_platform_addr (vcpu);
+                       break;
+
+               case PAL_FREQ_RATIOS:
+                       result = pal_freq_ratios (vcpu);
+                       break;
+
+               case PAL_FREQ_BASE:
+                       result = pal_freq_base (vcpu);
                        break;
 
                default:

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


 


Rackspace

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