From owner-freebsd-xen@FreeBSD.ORG Mon Nov 15 11:07:09 2010 Return-Path: Delivered-To: freebsd-xen@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D44D510657D0 for ; Mon, 15 Nov 2010 11:07:09 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C13DA8FC1D for ; Mon, 15 Nov 2010 11:07:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAFB79ex086493 for ; Mon, 15 Nov 2010 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAFB79Kf086491 for freebsd-xen@FreeBSD.org; Mon, 15 Nov 2010 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Nov 2010 11:07:09 GMT Message-Id: <201011151107.oAFB79Kf086491@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xen@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-xen@FreeBSD.org 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: Mon, 15 Nov 2010 11:07:09 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/149853 xen [panic] [xen] HYPERVISOR_update_va_mapping o kern/148262 xen [xen] [panic] HYPERVISOR_update_va_mapping o kern/147248 xen [xen] 8.0-RELEASE-p3 i386 Xen DomU filesystem "bufwait o kern/145664 xen [xen] mutex vm page queue mutex not owned o kern/144629 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143398 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143340 xen [xen] FreeBSD 8-RELEASE XEN pvm networking doesn't wor o kern/143069 xen [xen] [panic] Xen Kernel Panic - Memory modified after o kern/141328 xen [xen] [panic] gstat exit causes kernel panic from unma o kern/140313 xen [xen] [panic] FreeBSD8 RC2 as PV domU crashes during c o kern/135421 xen [xen] FreeBSD Xen PVM DomU network failure - netfronc. o kern/135178 xen [xen] Xen domU outgoing data transfer stall when TSO i o kern/135069 xen [xen] FreeBSD-current/Xen SMP doesn't function at all o kern/134926 xen [xen] [panic] FreeBSD-current Xen DomU networking pani 14 problems total. From owner-freebsd-xen@FreeBSD.ORG Thu Nov 18 06:22:50 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A0FF1065672 for ; Thu, 18 Nov 2010 06:22:50 +0000 (UTC) (envelope-from bounce-1557992-5468672-757496-255656@imnicamail.com) Received: from smtp.imnicamail.com (imnicamail.com [67.215.233.94]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5108FC15 for ; Thu, 18 Nov 2010 06:22:50 +0000 (UTC) Received: from smtp.imnicamail.com (localhost.localdomain [127.0.0.1]) by smtp.imnicamail.com (Postfix) with ESMTP id 328D610DE1A53 for ; Thu, 18 Nov 2010 05:52:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=imnicamail.com; h=date:to :from:reply-to:subject:message-id:sender:list-unsubscribe :mime-version:content-type:content-transfer-encoding; s=default; bh=63vouf+cJ3Wx5KPPyhRaBhuy4Cc=; b=gUXM1SbdujGb2JtMUdcsb3aaObqF rBinR+r2hlYj3HrkoM/mKjzvjJtwsVFkSZ7+Z27RR8pRFBAQmaIsSpwuLS7HZtKn dXHPw+99KlYTGb+m/NIMWuPAuGbT0jPfX2L8qqyaCS7KgAYkDvRM3JLGKKsxZ2Rh l1XvNhTnk7f71AU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=imnicamail.com; h=date:to :from:reply-to:subject:message-id:sender:list-unsubscribe :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=NQDkHzVwOJ31T0x9/HR94Q4olxjlhTFmY6gitMrbeGzEenxQegHuk LhFYOeRmyq1xIT9F4D5TgmFLSaOQxB9jWg1CqHD0Ln4BUF+MViL3eDhmDvGx7wWk n6wzZx1Yjxc+OBwtoux8p4NLkccjE5gSpUGEJ/7ItTZ2Iis/2ouoIc= Received: by smtp.imnicamail.com (Postfix, from userid 5001) id 25C3C10DE1A25; Thu, 18 Nov 2010 05:52:10 +0000 (GMT) Date: Thu, 18 Nov 2010 05:52:10 +0000 To: "freebsd-xen@freebsd.org" From: Godthoughts Wired Message-ID: <8cc9552d5a8a944eda82eefa7bf3386d@imnicamail.com> X-Priority: 3 Sender: X-Mailer: ImnicaMail X-Complaints-To: complaints@imnicamail.com X-MessageID: NzYzN3x8fHwyNjgwN3x8fHxmcmVlYnNkLXhlbkBmcmVlYnNkLm9yZ3x8fHwzNzEzfHx8fDEyNTN8fHx8MA%3D%3D X-Report-Abuse: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Celebrating SIN! X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Godthoughts Wired 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: Thu, 18 Nov 2010 06:22:50 -0000 GodThoughtsWired! &= nbsp; Wednesday, November 17, 2010 Evangelizing the Church in the Age of Delus= ion You are subs= cribed as freebsd-xen@freebsd.org celebrating sin! "Enjoy the passing pleasures of = sin..." Hebrews 11:25 I'll bet you didn't know the Bible said THAT!&= nbsp; Go ahead, look it up! See! I told ya! It's just = another way of saying the motto that "everyone of consenting age in any l= and knows," "What happens in Vegas, stays in Vegas."<= /b> As I sit here re-reading the article fro= m the USA Today Newspaper* whose entire premise is the celebration of sin= , I weep for the United States of America. T= he slogan is seven years old now, the article tells me, The key moment came in 2004 when Laura Bush ap= peared on the Tonight Show after a Sin City visit. Jay Leno ask= ed if she'd seen the Chippendales male strippers. Her re= sponse, worth more than $1 million in advertising; "Jay, what h= appens in Vegas, stays in Vegas." "There are no rules here," gushes one sati= sfied customer. "Nowadays, visitors may feel let down if they ha= ven't done what they wouldn't do back home," proclaims the marketing = director of a "sin club" where clients pay $400.00 per hour for..."sin."<= br /> "The city's mayor, a former defense lawyer for gangsters," sob= erly laments that, "The real estate market is in the dumps, but he thi= nks new attractions, such as the downtown Mob Museum-due in fall 2= 011-will lure visitors." Ahh, the celebration of sin.= By now, I trust that many of you are aware that the Bible verse a= t the top of the page? from Hebrews 11:25? I took it completely ou= t of context! Did you look it up? Well, ho= w 'bout ending with a couple of Bible verses that are completely "in" con= text: "There is a way which seems right to a man,= but its end is the way of death." Proverbs 16:25 And, "The wages of sin is death." Romans= 6:23 Always has been...Always will be. Now there's a sl= ogan for ya'. *quotations taken from, The USA Today newspa= per, Friday, November 12, 2010. p.5D. For more informat= ion about the GodThoughts Ministry, click [1]here. For more information about the author of G= odThoughts, click [2]here. [3]Click here to unsubscribe 3D"." References 1. 3D"http://www.imnicamai=/ 2. 3D"http://www.imnicamail.com/v4/tl.php?p=3D6nx/= 3. 3D"http://www.imnicamail.com/v4/u.php?p=3D6nx= From owner-freebsd-xen@FreeBSD.ORG Thu Nov 18 19:10:44 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 E907810656A4 for ; Thu, 18 Nov 2010 19:10:44 +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 984E31A499F for ; Thu, 18 Nov 2010 19:10:44 +0000 (UTC) Received: (qmail 6184 invoked from network); 18 Nov 2010 19:10:44 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2010 19:10:44 -0000 Message-ID: <4CE57A34.5040105@freebsd.org> Date: Thu, 18 Nov 2010 11:10:44 -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: "freebsd-xen@freebsd.org" X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: planning on churning the tree a bit 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: Thu, 18 Nov 2010 19:10:45 -0000 Hi guys, I'm trying to get FreeBSD Xen/PAE working so that FreeBSD can run on a *cough* large cloud computing system, and I'm finding a bunch of breakage. Some obvious breakage: 1. We don't check that the individual hypercalls in a multicall succeeded. 2. In the XEN && PAE case, pmap_release KASSERTs one page mapping too many. 3. In the XEN && PAE case, pmap_pinit calls pmap_qenter on NPGPTD + 1 pages, but pmap_release only calls pmap_qremove on NPGPTD of them. Some brain damage: 1. We have a VM_PAGE_TO_MACH() macro defined, but we're not using it in all the places where it should be used. 2. xen/pmap.c is full of #ifdef XEN, even though the file is not compiled in the !XEN case. I'm going to fix the obvious breakage (and more as I encounter it) and I'd also like to fix the brain damage since that will hopefully make it much easier for me to understand the code. Any objections? -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Fri Nov 19 14:42:32 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 6DCC61065672 for ; Fri, 19 Nov 2010 14:42:32 +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 C6EAB14E5D9 for ; Fri, 19 Nov 2010 14:42:31 +0000 (UTC) Received: (qmail 20341 invoked from network); 19 Nov 2010 14:42:31 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2010 14:42:31 -0000 Message-ID: <4CE68CD7.10804@freebsd.org> Date: Fri, 19 Nov 2010 06:42:31 -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: "freebsd-xen@freebsd.org" X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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: Fri, 19 Nov 2010 14:42:32 -0000 Hi all, 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. Any ideas? -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid From owner-freebsd-xen@FreeBSD.ORG Fri Nov 19 18:31:30 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C82FF106564A; Fri, 19 Nov 2010 18:31:30 +0000 (UTC) (envelope-from larry@kiputers.com) Received: from web05.lax1.coolhandle.com (web05.lax1.pronethosting.net [209.151.224.242]) by mx1.freebsd.org (Postfix) with ESMTP id 61B1E8FC14; Fri, 19 Nov 2010 18:31:30 +0000 (UTC) Received: from c-98-248-45-176.hsd1.ca.comcast.net ([98.248.45.176] helo=[192.168.0.104]) by web05.lax1.coolhandle.com with esmtpa (Exim 4.69) (envelope-from ) id 1PJVk2-0000jM-Tm; Fri, 19 Nov 2010 10:31:23 -0800 From: Larry Maloney To: Colin Percival In-Reply-To: <4CE68CD7.10804@freebsd.org> References: <4CE68CD7.10804@freebsd.org> Content-Type: text/plain; charset="us-ascii" Organization: Kiputers, Inc. Date: Fri, 19 Nov 2010 10:30:13 -0800 Message-ID: <1290191413.1758.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - web05.lax1.coolhandle.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - kiputers.com X-Source: X-Source-Args: X-Source-Dir: Cc: "freebsd-xen@freebsd.org" Subject: Re: system stalls when wallclock/TOD nudged X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: larry@kiputers.com 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: Fri, 19 Nov 2010 18:31:30 -0000 Does your motherboard have a hardware watchdog timer? Larry On Fri, 2010-11-19 at 06:42 -0800, Colin Percival wrote: > Hi all, > > 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. > > Any ideas? > 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 From owner-freebsd-xen@FreeBSD.ORG Sat Nov 20 07:40:12 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 295E0106564A; Sat, 20 Nov 2010 07:40:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8C13B8FC08; Sat, 20 Nov 2010 07:40:11 +0000 (UTC) Received: by wwd20 with SMTP id 20so5320176wwd.31 for ; Fri, 19 Nov 2010 23:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=v51FMsKIiJfnWuweuqgm4e3YkZ0v1nfTfOrog4aW7Rw=; b=c88ivaPxgn2SAUZzitt6aiYqZebhpE5C6/L54bq7+2M0uXoiIbUrr8154JaC2zmUxa y//K/UiF9EAS7c8wWWS1S64+0qck3VpuoMeEwCtCLLvCJT/F4CnDBGJKZY/XaUn/n8ov XPeYRbV93aBJDLFc+GZGAConB0XGAUATggL/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=dJCu0I8Ic+N35jD5Wd+PuwI9VmzmUEWz5IrYv6De8IPCZzsZW5NxN+QIyoVmZo8Aiz ijvCkktEPoV8RH8h+WWqdP90CGcNzHqxJ1ShKN6bgndXFC/Zq/zqBIjzAeLTUynPMhb5 Pbw3lqSGao9hW776uhjj3hhXvVxv0Ga82tQvM= MIME-Version: 1.0 Received: by 10.216.173.7 with SMTP id u7mr1862865wel.50.1290238809672; Fri, 19 Nov 2010 23:40:09 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.65.210 with HTTP; Fri, 19 Nov 2010 23:40:09 -0800 (PST) In-Reply-To: <4CE77AE7.3010106@freebsd.org> References: <4CE68CD7.10804@freebsd.org> <1290191413.1758.16.camel@localhost> <4CE77AE7.3010106@freebsd.org> Date: Sat, 20 Nov 2010 15:40:09 +0800 X-Google-Sender-Auth: ohnLxnV_9-fF4GtwFgiz76vNijw Message-ID: From: Adrian Chadd To: Colin Percival Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-xen@freebsd.org" 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:40:12 -0000 I bet if you did some slicing of -head versions, you'll find an earlier version that doesn't do that. :-) ADrian On 20 November 2010 15:38, Colin Percival wrote: > 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 exper= ienced >>> this and/or has any clue how to fix it. >>> >>> During the boot process, in the middle of running rc.d scripts, my Free= BSD/Xen >>> instance stalls. =A0It 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. =A0From = 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 t= o 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 pa= ranoid > _______________________________________________ > freebsd-xen@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xen > To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org" > From owner-freebsd-xen@FreeBSD.ORG Sat Nov 20 08:14:55 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 C0B98106566C for ; Sat, 20 Nov 2010 08:14:55 +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 4E3E4151CB9 for ; Sat, 20 Nov 2010 08:14:55 +0000 (UTC) Received: (qmail 32771 invoked from network); 20 Nov 2010 08:14:54 -0000 Received: from unknown (HELO xps.daemonology.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2010 08:14:54 -0000 Message-ID: <4CE7837E.3030901@freebsd.org> Date: Sat, 20 Nov 2010 00:14:54 -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: Adrian Chadd References: <4CE68CD7.10804@freebsd.org> <1290191413.1758.16.camel@localhost> <4CE77AE7.3010106@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-xen@freebsd.org" 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 08:14:55 -0000 On 11/19/10 23:40, Adrian Chadd wrote: > I bet if you did some slicing of -head versions, you'll find an > earlier version that doesn't do that. :-) Sure, all I need to do is go back a couple of days, and I find a FreeBSD Xen kernel which doesn't do this... because it panics before the clock gets nudged. :-) > On 20 November 2010 15:38, Colin Percival wrote: >> 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: >>>> 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 From owner-freebsd-xen@FreeBSD.ORG Sat Nov 20 08:17:26 2010 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 775B2106566B; Sat, 20 Nov 2010 08:17:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D82928FC08; Sat, 20 Nov 2010 08:17:25 +0000 (UTC) Received: by wyb35 with SMTP id 35so4494223wyb.13 for ; Sat, 20 Nov 2010 00:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=IOJtQOXw/BD6bulkI5fb31YTcUBb+X3bx6YJyUM2qHI=; b=K2XBKzpXocAsD6eM4V/OwvdKMwv6ulfsXvAkKQfZ+hDDjSYL1ZJjMI65WP09DWWfMr 9T82HusT0vCna7njUCUsOxfkgkn2qRADfC8z0mzAJevX1r0VpigBGPlqmAyymvj7kKNm DCRfl8xZqNnU6X44+LrVSBKW341X5A7LmXjo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=N65lNGJ3m9zrJyXsZ+vpWWJ+MaL6W9JzEYJEMVtVdRxC7TwoFKknSk0SlZ0iNo6U+Z YNziWoYDR5YJwbZrqLnn5nxsrBRHFuZLSEDqDFCzY/Nxqx+RBPY4FrNvTpjwfpo7S4ZR ygiW3sUI4WSwgaGASiFdMh8srgz5Pe2VQCkL0= MIME-Version: 1.0 Received: by 10.216.30.65 with SMTP id j43mr2883325wea.20.1290241044239; Sat, 20 Nov 2010 00:17:24 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.65.210 with HTTP; Sat, 20 Nov 2010 00:17:24 -0800 (PST) In-Reply-To: <4CE7837E.3030901@freebsd.org> References: <4CE68CD7.10804@freebsd.org> <1290191413.1758.16.camel@localhost> <4CE77AE7.3010106@freebsd.org> <4CE7837E.3030901@freebsd.org> Date: Sat, 20 Nov 2010 16:17:24 +0800 X-Google-Sender-Auth: 0pgjNw0qHxmb4C8v2WQNwfgN_IU Message-ID: From: Adrian Chadd To: Colin Percival Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-xen@freebsd.org" 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 08:17:26 -0000 On 20 November 2010 16:14, Colin Percival wrote: > On 11/19/10 23:40, Adrian Chadd wrote: >> I bet if you did some slicing of -head versions, you'll find an >> earlier version that doesn't do that. :-) > > Sure, all I need to do is go back a couple of days, and I find a FreeBSD > Xen kernel which doesn't do this... because it panics before the clock > gets nudged. :-) > Well, try a -head kernel from 6 months ago but patch with your recent changes? :-) Adrian >> On 20 November 2010 15:38, Colin Percival wrote: >>> 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: >>>>> During the boot process, in the middle of running rc.d scripts, my Fr= eeBSD/Xen >>>>> instance stalls. =A0It does nothing until I send a shutdown signal, a= t which point >>>>>> [XEN] hypervisor wallclock nudged; nudging TOD. >>>>> and a couple buffered lines of rc.d script output are printed. =A0Fro= m there the >>>>> rc.shutdown script starts running, but it too stalls after a short ti= me; then I >>>>> see >>>>>> [XEN] hypervisor wallclock nudged; nudging TOD. >>>>>> Nov 19 14:08:33 init: timeout expired for /bin/sh on /etc/rc.shutdow= n: 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 pa= ranoid > From owner-freebsd-xen@FreeBSD.ORG Sat Nov 20 09:28:39 2010 Return-Path: Delivered-To: freebsd-xen@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 592CE106566C; Sat, 20 Nov 2010 09:28:39 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3076D8FC08; Sat, 20 Nov 2010 09:28:39 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAK9SdqZ010535; Sat, 20 Nov 2010 09:28:39 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAK9Sdfk010531; Sat, 20 Nov 2010 09:28:39 GMT (envelope-from linimon) Date: Sat, 20 Nov 2010 09:28:39 GMT Message-Id: <201011200928.oAK9Sdfk010531@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-xen@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/152228: [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 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 09:28:39 -0000 Old Synopsis: Xen/PV panic with machdep.idle_mwait=1 New Synopsis: [xen] [panic] Xen/PV panic with machdep.idle_mwait=1 Responsible-Changed-From-To: freebsd-bugs->freebsd-xen Responsible-Changed-By: linimon Responsible-Changed-When: Sat Nov 20 09:28:14 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=152228