|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] [RFC][PATCH] allow dom0 to power off machine using	ACPI 
 
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
 
 |   
 
 | 
    | 
  
  
    |   | 
    |