[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Power down an x86 system directly within domain0 rather than



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c5df04d6af1751af399ae5063a7618f05be55368
# Parent  fb174770f426193a9ae6594c8f683275bbe78451
Power down an x86 system directly within domain0 rather than
executing a shutdown hypercall. Domain0 is able to execute
ACPI power-off code.

Signed-off-by: Harry Butterworth <butterwo@xxxxxxxxxx>

diff -r fb174770f426 -r c5df04d6af17 
linux-2.6-xen-sparse/drivers/xen/core/reboot.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/reboot.c    Fri Apr  7 10:52:00 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/core/reboot.c    Fri Apr  7 12:40:22 2006
@@ -59,6 +59,10 @@
 {
        /* We really want to get pending console data out before we die. */
        xencons_force_flush();
+#if defined(__i386__) || defined(__x86_64__)
+       if (pm_power_off)
+               pm_power_off();
+#endif
        HYPERVISOR_shutdown(SHUTDOWN_poweroff);
 }
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.