All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hvm/vpt: Check that an irq is not blocked before waking the vcpu
@ 2009-03-09 11:45 George Dunlap
  2009-03-09 12:01 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: George Dunlap @ 2009-03-09 11:45 UTC (permalink / raw)
  To: Xen-devel

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

Currently, when a timer fires for a vpt interrupt, the interrupt
handler calls vcpu_kick() without checking to see if the IRQ is
blocked.  This causes the vcpu to wake up out of a halt when it
shouldn't.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>

[-- Attachment #2: check-event-before-wake.diff --]
[-- Type: text/x-diff, Size: 352 bytes --]

diff -r b249f3e979a5 xen/arch/x86/hvm/vpt.c
--- a/xen/arch/x86/hvm/vpt.c	Mon Mar 09 10:32:24 2009 +0000
+++ b/xen/arch/x86/hvm/vpt.c	Mon Mar 09 11:32:14 2009 +0000
@@ -209,7 +209,8 @@
         set_timer(&pt->timer, pt->scheduled);
     }
 
-    vcpu_kick(pt->vcpu);
+    if ( !pt_irq_masked(pt) )
+        vcpu_kick(pt->vcpu);
 
     pt_unlock(pt);
 }

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-09 12:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 11:45 [PATCH] hvm/vpt: Check that an irq is not blocked before waking the vcpu George Dunlap
2009-03-09 12:01 ` Keir Fraser
2009-03-09 12:22   ` George Dunlap
2009-03-09 12:34     ` How do I restrict a Domu to a CPU Venefax

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.