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

[Xen-changelog] [xen-3.0.5-testing] hvm vmx: Another small fix for CPUs with no TPR_SHADOW support.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1177536579 -3600
# Node ID bdde5daf056e1137d682747540c0c3ec63615a99
# Parent  55d0a5c70986bad197e06bf2a2e3f78854dea8da
hvm vmx: Another small fix for CPUs with no TPR_SHADOW support.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/hvm/vmx/intr.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 55d0a5c70986 -r bdde5daf056e xen/arch/x86/hvm/vmx/intr.c
--- a/xen/arch/x86/hvm/vmx/intr.c       Wed Apr 25 22:22:31 2007 +0100
+++ b/xen/arch/x86/hvm/vmx/intr.c       Wed Apr 25 22:29:39 2007 +0100
@@ -71,6 +71,9 @@ static void update_tpr_threshold(struct 
 static void update_tpr_threshold(struct vlapic *vlapic)
 {
     int max_irr, tpr;
+
+    if ( !cpu_has_vmx_tpr_shadow )
+        return;
 
     if ( !vlapic_enabled(vlapic) || 
          ((max_irr = vlapic_find_highest_irr(vlapic)) == -1) )

_______________________________________________
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®.