From owner-freebsd-xen@FreeBSD.ORG Sat Nov 20 07:38:16 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 7C200106566C for ; Sat, 20 Nov 2010 07:38:16 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from xps.daemonology.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx2.freebsd.org (Postfix) with SMTP id 0CE98150886 for ; Sat, 20 Nov 2010 07:38:15 +0000 (UTC) Received: (qmail 32300 invoked from network); 20 Nov 2010 07:38:15 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2010 07:38:15 -0000 Message-ID: <4CE77AE7.3010106@freebsd.org> Date: Fri, 19 Nov 2010 23:38:15 -0800 From: Colin Percival User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100803 Thunderbird/3.0.6 MIME-Version: 1.0 To: larry@kiputers.com, "freebsd-xen@freebsd.org" References: <4CE68CD7.10804@freebsd.org> <1290191413.1758.16.camel@localhost> In-Reply-To: <1290191413.1758.16.camel@localhost> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: system stalls when wallclock/TOD nudged X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Nov 2010 07:38:16 -0000 On 11/19/10 10:30, Larry Maloney wrote: > Does your motherboard have a hardware watchdog timer? Not one which is accessible from within a DomU. :-) It seems that this bug is related somehow to the idle thread sleeping -- when I comment out the call to idle_block from cpu_idle_hlt in i386/machdep.c the stalling goes away. > On Fri, 2010-11-19 at 06:42 -0800, Colin Percival wrote: >> I'm seeing a weird bug here, and I'm wondering if anyone else has experienced >> this and/or has any clue how to fix it. >> >> During the boot process, in the middle of running rc.d scripts, my FreeBSD/Xen >> instance stalls. It does nothing until I send a shutdown signal, at which point >>> [XEN] hypervisor wallclock nudged; nudging TOD. >> and a couple buffered lines of rc.d script output are printed. From there the >> rc.shutdown script starts running, but it too stalls after a short time; then I >> see >>> [XEN] hypervisor wallclock nudged; nudging TOD. >>> Nov 19 14:08:33 init: timeout expired for /bin/sh on /etc/rc.shutdown: Interrupted system call; going to single user mode >> printed, suggesting that the shutdown watchdog timer at least managed to not get >> stuck even though everything else did. -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid