Skip to contentSkip to conversation

x86 hvm: fix one-shot timers. reset pending_intr_nr.

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86 hvm: fix one-shot timers. reset pending_intr_nr.

As long as I look over the source code (sorry, I don't test it), once one-shot timer is fired, IRQ is raised repeatedly forever.

xen/arch/x86/hvm/vpt.c +1 -0
diff -r 52fd5baad593 xen/arch/x86/hvm/vpt.c
@@ -298,6 +298,7 @@ void pt_intr_post(struct vcpu *v, struct
         if ( pt->on_list )
             list_del(&pt->list);
         pt->on_list = 0;
+        pt->pending_intr_nr = 0;
     }
     else
     {

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