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-ia64-devel

Re: [Xen-ia64-devel] [RFC] dump core is failed for PAL_HALT

To: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [RFC] dump core is failed for PAL_HALT
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Sun, 21 Jan 2007 23:27:23 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 21 Jan 2007 06:26:49 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <6DC73D63F1A753takebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6DC73D63F1A753takebe_akio@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Sun, Jan 21, 2007 at 10:56:26PM +0900, Akio Takebe wrote:
> In linux side, panic() call smp_send_stop() before panic_notifier_list.
> And smp_send_stop() call PAL_HALT.
> So we cannot coredump guest memory,
> because smp_send_stop call domain_shutdown(SHUTDOWN_poweroff).
> Which way shold we choice?
>     A. we don't call smp_send_stop in panic()
>     B. we don't call PAL_HALT in xen_pal_emulator(),
>        and we call EFI_RESET_SYSTEM in machine_halt().

Choice C.
        Modify PAL_HALT emulation as follows.
        If other vcpu is left and alive, vcpu is put in sleep.
        If current is the last vcpu, call domain_shutdown(SHUTDOWN_poweroff).
        It will be guaranteed that the vcpu which call panic() calls
        HYPERVISOR_shutdown(SHUTDOWN_crash) via xen_panic_block so that
        the guest domain's core dump should be created.
        (I haven't tested it though.)

-- 
yamahata

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