Skip to contentSkip to conversation

x86 hvm vpt: slightly improvement

PATCH New Kouya Shimura 1 participant 1 message Sep 3, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86 hvm vpt: slightly improvement

There are quite a lot of the case of pt->pending_intr_nr==0. and pt_irq_masked() is more complicated.

xen/arch/x86/hvm/vpt.c +1 -1
diff -r b4fcb5f632dc xen/arch/x86/hvm/vpt.c
@@ -229,7 +229,7 @@ void pt_update_irq(struct vcpu *v)
 
     list_for_each_entry ( pt, head, list )
     {
-        if ( !pt_irq_masked(pt) && pt->pending_intr_nr &&
+        if ( pt->pending_intr_nr && !pt_irq_masked(pt) &&
              ((pt->last_plt_gtime + pt->period) < max_lag) )
         {
             max_lag = pt->last_plt_gtime + pt->period;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel