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

[Xen-changelog] [xen-3.1-testing] [IA64] Fix PAL_HALT of dom0 for panic_notifier_list



# 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


 


Rackspace

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