WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [RFC][PATCH] allow dom0 to power off machine using ACPI

To: Harry Butterworth <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC][PATCH] allow dom0 to power off machine using ACPI on shutdown.
From: Muli Ben-Yehuda <mulix@xxxxxxxxx>
Date: Thu, 06 Apr 2006 21:46:02 +0300
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 06 Apr 2006 11:47:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1144348570.7725.9.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1144348570.7725.9.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11+cvs20060126
On Thu, Apr 06, 2006 at 07:36:10PM +0100, Harry Butterworth wrote:

> This is an evil little patch which allows my dom0 to power off the
> machine on shutdown successfully and doesn't break my domU shutdown
> behaviour.
> 
> The #if bits are ugly and are present because pm_power_off is declared
> above in the same #if context, maybe they are not necessary.  I'm not
> sure about the solution for ia64.
> 
> This powers down the machine without bothering to tell the
> hypervisor.

I wonder why we go to the hypervisor for shutdown at the moment. I
don't see anything interesting being done for x86, and we could always
have dom0 notifying Xen that it's going to shut down, and then
shutting down whe the hypercall return.

> I thought this kind of solution was better than trying to import a lot
> more ACPI cruft into Xen.  Any thoughts?

I think you want kernel_power_off() here, which should do the right
thing for all architectures.

Cheers,
Muli
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel