From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: xen 4.1.0 + 3.0-rc3 pvops: virtualbox doesn't power off Date: Wed, 15 Jun 2011 08:41:42 -0400 Message-ID: <20110615124142.GB5512@dumpdata.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Sven =?iso-8859-1?Q?K=F6hler?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --FCuugMFkClbJLl1L Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 15, 2011 at 02:33:28AM +0200, Sven K=F6hler wrote: > Hi, >=20 > I'm running xen 4.1.0 and 3.0-rc3 pvops dom0 with vga text console patc= h > inside virtualbox (both xen and dom0 kernel 64bit). >=20 > It doesn't power off. I see the "Power down." message by the kernel, > then nothing happens. Reboot works fine. Same kernel on bare metal > (still inside virtalbox) powers off fine. Also 2.6.39.x from konrad's > tree power's off fine, with or without xen. You probably need the patch titled "xen: When calling power_off, don't ca= ll the halt function." see attached patch and please tell me whether it works. --FCuugMFkClbJLl1L Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="9734ef061dacd34c12015032261566e72a5b0e95.patch" commit 9734ef061dacd34c12015032261566e72a5b0e95 Author: Tom Goetz Date: Mon May 16 15:06:26 2011 -0400 xen: When calling power_off, don't call the halt function. .. As it won't actually power off the machine. Signed-off-by: Tom Goetz Signed-off-by: Konrad Rzeszutek Wilk diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index e3c6a06..5584fb1 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1033,6 +1033,13 @@ static void xen_machine_halt(void) xen_reboot(SHUTDOWN_poweroff); } +static void xen_machine_power_off(void) +{ + if (pm_power_off) + pm_power_off(); + xen_reboot(SHUTDOWN_poweroff); +} + static void xen_crash_shutdown(struct pt_regs *regs) { xen_reboot(SHUTDOWN_crash); @@ -1058,7 +1065,7 @@ int xen_panic_handler_init(void) static const struct machine_ops __initdata xen_machine_ops = { .restart = xen_restart, .halt = xen_machine_halt, - .power_off = xen_machine_halt, + .power_off = xen_machine_power_off, .shutdown = xen_machine_halt, .crash_shutdown = xen_crash_shutdown, .emergency_restart = xen_emergency_restart, --FCuugMFkClbJLl1L Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --FCuugMFkClbJLl1L--