xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Xen/timer: Disable watchdog during dumping timer queues
@ 2016-09-13  7:12 Lan Tianyu
       [not found] ` <57D7DCC2020000780010E553@prv-mh.provo.novell.com>
  0 siblings, 1 reply; 14+ messages in thread
From: Lan Tianyu @ 2016-09-13  7:12 UTC (permalink / raw)
  To: xen-devel
  Cc: Lan Tianyu, sstabellini, wei.liu2, George.Dunlap, andrew.cooper3,
	ian.jackson, jbeulich

On a machine with a mount of cpus, dump_timerq() lasts several seconds
which may exceed watchdog timeout and cause Xen hyperviosr reboot.
This patch is to disable watchdog when dump timer queues to fix the
issue.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 xen/common/timer.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xen/common/timer.c b/xen/common/timer.c
index 29a60a9..2d9d828 100644
--- a/xen/common/timer.c
+++ b/xen/common/timer.c
@@ -21,6 +21,7 @@
 #include <xen/cpu.h>
 #include <xen/rcupdate.h>
 #include <xen/symbols.h>
+#include <xen/watchdog.h>
 #include <asm/system.h>
 #include <asm/desc.h>
 #include <asm/atomic.h>
@@ -524,6 +525,7 @@ static void dump_timerq(unsigned char key)
     s_time_t       now = NOW();
     int            i, j;
 
+    watchdog_disable();
     printk("Dumping timer queues:\n");
 
     for_each_online_cpu( i )
@@ -538,6 +540,8 @@ static void dump_timerq(unsigned char key)
             dump_timer(t, now);
         spin_unlock_irqrestore(&ts->lock, flags);
     }
+
+    watchdog_enable();
 }
 
 static void migrate_timers_from_cpu(unsigned int old_cpu)
-- 
1.7.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-09-22 15:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-13  7:12 [PATCH] Xen/timer: Disable watchdog during dumping timer queues Lan Tianyu
     [not found] ` <57D7DCC2020000780010E553@prv-mh.provo.novell.com>
     [not found]   ` <c7777159-7863-99fc-76ab-e8f4195286e1@intel.com>
2016-09-13 15:25     ` Jan Beulich
2016-09-15 14:16       ` Lan, Tianyu
2016-09-15 14:32         ` Jan Beulich
2016-09-19 13:57           ` Lan, Tianyu
2016-09-19 14:46             ` Jan Beulich
2016-09-20 14:52               ` Lan, Tianyu
2016-09-20 15:36                 ` Jan Beulich
2016-09-21  1:54                   ` Lan Tianyu
2016-09-21  9:25                     ` Jan Beulich
2016-09-22 14:18                       ` Lan Tianyu
2016-09-22 14:26                         ` Jan Beulich
2016-09-22 15:04                           ` Lan, Tianyu
2016-09-22 15:35                             ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).