From owner-freebsd-xen@FreeBSD.ORG Thu Feb 2 21:37:45 2012 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 62BA4106564A; Thu, 2 Feb 2012 21:37:45 +0000 (UTC) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [70.89.174.89]) by mx1.freebsd.org (Postfix) with ESMTP id 30B828FC15; Thu, 2 Feb 2012 21:37:44 +0000 (UTC) Received: from kevinmurphy.sldomain.com (207-225-98-3.dia.static.qwest.net [207.225.98.3]) (authenticated bits=0) by aslan.scsiguy.com (8.14.5/8.14.5) with ESMTP id q12LbhNd005444 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 2 Feb 2012 14:37:43 -0700 (MST) (envelope-from gibbs@scsiguy.com) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: "Justin T. Gibbs" In-Reply-To: Date: Thu, 2 Feb 2012 14:37:38 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <0ECDE507-94CF-4330-ABCE-59F9079B46F9@scsiguy.com> References: <4F1FD67B.3080305@freebsd.org> To: Richard Kojedzinszky X-Mailer: Apple Mail (2.1257) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (aslan.scsiguy.com [70.89.174.89]); Thu, 02 Feb 2012 14:37:44 -0700 (MST) Cc: freebsd-xen@freebsd.org Subject: Re: amd64 xen hvm shutdown 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, 02 Feb 2012 21:37:45 -0000 On Feb 2, 2012, at 12:31 PM, Richard Kojedzinszky wrote: > Dear users, >=20 > I am trying to compare the 8.2 i386 PV mode and 9.0 amd64 hvm mode, = regarding >=20 > $ xm shutdown >=20 > from outside. >=20 > While 8.2 PV shuts down well, 9.0 hvm does not. Is it an issue of the = xen hypervisor, or of freebsd? >=20 > What experience do others have? If you are using a FreeBSD amd64 kernel with Xen PV drivers installed, = shutdown behavior is controlled by the PV "control" driver. This driver notices updates to the = "control/shutdown" node in the XenStore and is supposed to act accordingly. For a reboot or power off event, it = simply calls shutdown_nice(RB_POWEROFF|RB_HALT), or shutdown_nice(0) as appropriate. = If you can capture the value of the shutdown node in the XenStore, it should be pretty easy to = debug this. -- Justin=