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] [xen-3.1-testing] [IA64] Fix PAL_HALT of dom0 for panic_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] [IA64] Fix PAL_HALT of dom0 for panic_notifier_list
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Oct 2007 08:40:27 -0700
Delivery-date: Thu, 04 Oct 2007 08:41:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1191418729 -3600
# Node ID 092cbf1f4bf4e781f3809a33a8b89afa58296b2c
# Parent  c24fdb4b184c15c80cee978d239b61f8d6fb39e9
[IA64] Fix PAL_HALT of dom0 for panic_notifier_list

Currently dom0 cannot call panic_notifier_list in panic().
This is caused by PAL_HALT called from smp_send_stop().
When dom0 calls PAL_HALT, Hypervisor reset system.
So if dom0 panic, we cannot use panic_notifier_list.
Current PAL_HALT of xen is different from ia64 specification.
This patch fixes this issue.

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
xen-unstable changeset:   15756:039f2ccb1e383a52eb44ba3ed80859548932b95e
xen-unstable date:        Tue Jul 31 10:30:40 2007 -0600
---
 xen/arch/ia64/xen/fw_emul.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff -r c24fdb4b184c -r 092cbf1f4bf4 xen/arch/ia64/xen/fw_emul.c
--- a/xen/arch/ia64/xen/fw_emul.c       Wed Oct 03 14:38:06 2007 +0100
+++ b/xen/arch/ia64/xen/fw_emul.c       Wed Oct 03 14:38:49 2007 +0100
@@ -720,15 +720,9 @@ xen_pal_emulator(unsigned long index, u6
                }
                break;
            case PAL_HALT:
-               if (current->domain == dom0) {
-                       printk ("Domain0 halts the machine\n");
-                       console_start_sync();
-                       (*efi.reset_system)(EFI_RESET_SHUTDOWN,0,0,NULL);
-               } else {
-                       set_bit(_VPF_down, &current->pause_flags);
-                       vcpu_sleep_nosync(current);
-                       status = PAL_STATUS_SUCCESS;
-               }
+               set_bit(_VPF_down, &current->pause_flags);
+               vcpu_sleep_nosync(current);
+               status = PAL_STATUS_SUCCESS;
                break;
            case PAL_HALT_LIGHT:
                if (VMX_DOMAIN(current)) {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] [IA64] Fix PAL_HALT of dom0 for panic_notifier_list, Xen patchbot-3.1-testing <=