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-changelog

[Xen-changelog] [IA64] EFI_RESET_SYSTEM now reboots domU.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [IA64] EFI_RESET_SYSTEM now reboots domU.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Mar 2006 00:52:10 +0000
Delivery-date: Thu, 23 Mar 2006 00:54:15 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 263901a2a9950be9bc5a2f13a3fd102b0dcba51e
# Parent  9afd25b90af4b7908acd0dd82996f9331ce94cfa
[IA64] EFI_RESET_SYSTEM now reboots domU.

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>

diff -r 9afd25b90af4 -r 263901a2a995 xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Mon Mar 20 16:56:58 2006
+++ b/xen/arch/ia64/xen/dom_fw.c        Tue Mar 21 16:13:07 2006
@@ -18,6 +18,7 @@
 #include <xen/acpi.h>
 
 #include <asm/dom_fw.h>
+#include <public/sched.h>
 
 static struct ia64_boot_param *dom_fw_init(struct domain *, char *,int,char 
*,int);
 extern unsigned long domain_mpa_to_imva(struct domain *,unsigned long mpaddr);
@@ -324,7 +325,8 @@
                            (*efi.reset_system)(EFI_RESET_SHUTDOWN,0,0,NULL);
                    }
                    else
-                           domain_shutdown (current->domain, 0);
+                           domain_shutdown (current->domain,
+                                            SHUTDOWN_poweroff);
                    break;
            default:
                printk("xen_pal_emulator: UNIMPLEMENTED PAL CALL %lu!!!!\n",
diff -r 9afd25b90af4 -r 263901a2a995 xen/arch/ia64/xen/hypercall.c
--- a/xen/arch/ia64/xen/hypercall.c     Mon Mar 20 16:56:58 2006
+++ b/xen/arch/ia64/xen/hypercall.c     Tue Mar 21 16:13:07 2006
@@ -196,7 +196,8 @@
                        printf("(by dom0)\n ");
                        (*efi.reset_system)(EFI_RESET_WARM,0,0,NULL);
                }
-               printf("(not supported for non-0 domain)\n");
+               else
+                       domain_shutdown (current->domain, SHUTDOWN_reboot);
                regs->r8 = EFI_UNSUPPORTED;
                break;
            case FW_HYPERCALL_EFI_GET_TIME:

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] EFI_RESET_SYSTEM now reboots domU., Xen patchbot -unstable <=