|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-devel] Re: [PATCH] kexec: framework and i386 (Take XIV)
To: |
Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> |
Subject: |
[Xen-devel] Re: [PATCH] kexec: framework and i386 (Take XIV) |
From: |
Horms <horms@xxxxxxxxxxxx> |
Date: |
Fri, 1 Sep 2006 11:56:11 +0900 |
Cc: |
Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Kazuo Moriwaka <moriwaka@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, "Zou, Nanhai" <nanhai.zou@xxxxxxxxx>, Magnus Damm <magnus@xxxxxxxxxxxxx>, Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, Mark Williamson <mark.williamson@xxxxxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx |
Delivery-date: |
Fri, 01 Sep 2006 03:16:50 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<88C6CCDB437DC3takebe_akio@xxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20060525072017.GA25881@xxxxxxxxxxxx> <20060711033900.GA26632@xxxxxxxxxxxx> <20060811074839.GA21317@xxxxxxxxxxxx> <20060831074259.GB23148@xxxxxxxxxxxx> <88C6CCDB437DC3takebe_akio@xxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
mutt-ng/devel-r804 (Debian) |
On Thu, Aug 31, 2006 at 05:55:52PM +0900, Akio Takebe wrote:
> Hi, Horms and Magnus
>
> Good work. :-)
> I have one commet.
>
> I believe crash_kexec should be directly called
> when unknown NMI is occurred.
> In your patch, crash_kexec is called as the bellow.
> 1. unknown NMI is occurred. (e.g. by pushing NMI botton)
> 2. xen recieved NMI and call do_nmi.
> 3. xen report to dom0 by using raise_softirq(NMI_SOFTIRQ).
> 4. dom0 call crash_kexec of dom0.
> 5. crash_kexec of dom0 call crash_kexec of xen
>
> Am I correct?
> The above process is not reliable if I'm correct.
> So I belive crash_kexec of xen should be directly called like the
> following patch.
>
> diff -r 9611a5c9e1a1 xen/arch/x86/traps.c
> --- a/xen/arch/x86/traps.c Thu Aug 31 13:12:26 2006 +0900
> +++ b/xen/arch/x86/traps.c Thu Aug 31 17:40:19 2006 +0900
> @@ -1612,6 +1612,7 @@ asmlinkage void do_nmi(struct cpu_user_r
> else if ( reason & 0x40 )
> io_check_error(regs);
> else if ( !nmi_watchdog )
> + crash_kexec(NULL);
> unknown_nmi_error((unsigned char)(reason&0xff));
> }
> }
>
> What do you think about it?
That seems like a good idea to me. Though I think you are missing { }.
Can you test to see if this works?
--- a/xen/arch/x86/traps.c 2006-09-01 11:53:44.000000000 +0900
+++ b/xen/arch/x86/traps.c 2006-09-01 11:53:56.000000000 +0900
@@ -1611,8 +1611,10 @@
mem_parity_error(regs);
else if ( reason & 0x40 )
io_check_error(regs);
- else if ( !nmi_watchdog )
+ else if ( !nmi_watchdog ) {
+ crash_kexec(NULL);
unknown_nmi_error((unsigned char)(reason&0xff));
+ }
}
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: [PATCH] kexec: framework and i386 (Take XIV),
Horms <=
|
|
|
|
|