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

[Xen-changelog] [xen-unstable] hvm: Do not mess with APIC timer deadline if in one-shot mode.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1225190182 0
# Node ID 16eede82385477740830a8c4ddc0a5a200c851c7
# Parent  748af1e5d67c5f4604d095f95b9c953ae1d5adcc
hvm: Do not mess with APIC timer deadline if in one-shot mode.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/vpt.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 748af1e5d67c -r 16eede823854 xen/arch/x86/hvm/vpt.c
--- a/xen/arch/x86/hvm/vpt.c    Tue Oct 28 10:35:15 2008 +0000
+++ b/xen/arch/x86/hvm/vpt.c    Tue Oct 28 10:36:22 2008 +0000
@@ -389,7 +389,7 @@ void create_periodic_time(
      * LAPIC ticks for process accounting can see long sequences of process
      * ticks incorrectly accounted to interrupt processing.
      */
-    if ( pt->source == PTSRC_lapic )
+    if ( !pt->one_shot && (pt->source == PTSRC_lapic) )
         pt->scheduled += delta >> 1;
     pt->cb = cb;
     pt->priv = data;

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