From: Keir Fraser Subject: Re: [RFC] x86/watchdog: Always disable watchdog before console_force_unlock() Date: Mon, 12 Aug 2013 12:31:05 +0100 Message-ID: References: <5208CA7502000078000EB1B1@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V8qLE-0004w3-GH for xen-devel@lists.xenproject.org; Mon, 12 Aug 2013 11:31:16 +0000 Received: by mail-ee0-f45.google.com with SMTP id c50so3436970eek.32 for ; Mon, 12 Aug 2013 04:31:14 -0700 (PDT) In-Reply-To: <5208CA7502000078000EB1B1@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , Andrew Cooper Cc: xen-devel , Tim Deegan List-Id: xen-devel@lists.xenproject.org On 12/08/2013 10:43, "Jan Beulich" wrote: >>>> On 12.08.13 at 11:35, Andrew Cooper wrote: >> On 12/08/13 09:50, Jan Beulich wrote: >>>>>> On 09.08.13 at 23:17, Andrew Cooper wrote: >>>> console_force_unlock() is only on emergency paths, so one way or another >>>> the >>>> host is going down. Disable the watchdog before forcing the console lock >>>> to >>>> help prevent having pcpus completing with each other to bring the host >>>> down. >>> So perhaps rather than calling watchdog_disable() before calling >>> console_force_unlock(), would we not better call the former first >>> thing from the latter? >> >> That was indeed my first attempt, but console_force_unlock() is common >> while watchdog_* is x86. >> >> I could convert the watchdog to arch specific. I suppose it is >> possible/likely that the Arm folk might want to implement and use >> watchdogs ? > > So would I think. Just have ARM have an empty function for the > moment. Yes, watchdog is not an x86-specific concept so making some general-purpose watchdog functions common and stubbed out on some architectures makes total sense. -- Keir > Jan >