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
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
|