All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/x86: set panic notifier priority to minimum
@ 2014-05-13 16:56 Radim Krčmář
  2014-05-13 17:18 ` David Vrabel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Radim Krčmář @ 2014-05-13 16:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Jones, Konrad Rzeszutek Wilk, Boris Ostrovsky,
	David Vrabel, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
	xen-devel

Execution is not going to continue after telling Xen about the crash.
Let other panic notifiers run by postponing the final hypercall as much
as possible.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
---
 arch/x86/xen/enlighten.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index c34bfc4..f17b292 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1339,6 +1339,7 @@ xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
 
 static struct notifier_block xen_panic_block = {
 	.notifier_call= xen_panic_event,
+	.priority = INT_MIN
 };
 
 int xen_panic_handler_init(void)
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] xen/x86: set panic notifier priority to minimum
@ 2014-05-13 16:56 Radim Krčmář
  0 siblings, 0 replies; 8+ messages in thread
From: Radim Krčmář @ 2014-05-13 16:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Jones, x86, Ingo Molnar, David Vrabel, H. Peter Anvin,
	xen-devel, Thomas Gleixner, Boris Ostrovsky

Execution is not going to continue after telling Xen about the crash.
Let other panic notifiers run by postponing the final hypercall as much
as possible.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
---
 arch/x86/xen/enlighten.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index c34bfc4..f17b292 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1339,6 +1339,7 @@ xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
 
 static struct notifier_block xen_panic_block = {
 	.notifier_call= xen_panic_event,
+	.priority = INT_MIN
 };
 
 int xen_panic_handler_init(void)
-- 
1.9.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] xen/x86: set panic notifier priority to minimum
  2014-05-13 16:56 [PATCH] xen/x86: set panic notifier priority to minimum Radim Krčmář
@ 2014-05-13 17:18 ` David Vrabel
  2014-05-13 18:36   ` Radim Krčmář
  2014-05-13 18:36   ` Radim Krčmář
  2014-05-13 17:18 ` David Vrabel
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 8+ messages in thread
From: David Vrabel @ 2014-05-13 17:18 UTC (permalink / raw)
  To: Radim Krčmář, linux-kernel
  Cc: Andrew Jones, Konrad Rzeszutek Wilk, Boris Ostrovsky,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, xen-devel

On 13/05/14 17:56, Radim Krčmář wrote:
> Execution is not going to continue after telling Xen about the crash.
> Let other panic notifiers run by postponing the final hypercall as much
> as possible.

I can't tell how important this fix is.

What notifiers does this allow to be run?  How important are they?

David


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xen/x86: set panic notifier priority to minimum
  2014-05-13 16:56 [PATCH] xen/x86: set panic notifier priority to minimum Radim Krčmář
  2014-05-13 17:18 ` David Vrabel
@ 2014-05-13 17:18 ` David Vrabel
  2014-05-15 14:56 ` David Vrabel
  2014-05-15 14:56 ` David Vrabel
  3 siblings, 0 replies; 8+ messages in thread
From: David Vrabel @ 2014-05-13 17:18 UTC (permalink / raw)
  To: Radim Krčmář, linux-kernel
  Cc: Andrew Jones, x86, Ingo Molnar, H. Peter Anvin, xen-devel,
	Thomas Gleixner, Boris Ostrovsky

On 13/05/14 17:56, Radim Krčmář wrote:
> Execution is not going to continue after telling Xen about the crash.
> Let other panic notifiers run by postponing the final hypercall as much
> as possible.

I can't tell how important this fix is.

What notifiers does this allow to be run?  How important are they?

David


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xen/x86: set panic notifier priority to minimum
  2014-05-13 17:18 ` David Vrabel
  2014-05-13 18:36   ` Radim Krčmář
@ 2014-05-13 18:36   ` Radim Krčmář
  1 sibling, 0 replies; 8+ messages in thread
From: Radim Krčmář @ 2014-05-13 18:36 UTC (permalink / raw)
  To: David Vrabel
  Cc: linux-kernel, Andrew Jones, Konrad Rzeszutek Wilk,
	Boris Ostrovsky, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
	x86, xen-devel

2014-05-13 18:18+0100, David Vrabel:
> On 13/05/14 17:56, Radim Krčmář wrote:
> > Execution is not going to continue after telling Xen about the crash.
> > Let other panic notifiers run by postponing the final hypercall as much
> > as possible.
> 
> I can't tell how important this fix is.

Sorry, I could have put reasoning in the commit:

Not very important, depends on long linux+xen is going to last.
This patch is thinking about users/developers that would eventually find
a problem with it, and questioned our inteligence -- it makes no sense
to use the default priority for a notifier that is (can be) final.
INT_MIN is set because I don't think that Xen indended to resume domains
after crash.  (We should reason any other value as well.)

> What notifiers does this allow to be run?  How important are they?

Priority 0 (default) or lower.  Registration is stable and paravirt does
it early, so there won't be many priority 0 users before it. (None now.)

Hardware that can be passed through (most notably graphic cards), and
few debug markers (dump_kernel_offset, hung_task_panic) are affected at
the moment.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xen/x86: set panic notifier priority to minimum
  2014-05-13 17:18 ` David Vrabel
@ 2014-05-13 18:36   ` Radim Krčmář
  2014-05-13 18:36   ` Radim Krčmář
  1 sibling, 0 replies; 8+ messages in thread
From: Radim Krčmář @ 2014-05-13 18:36 UTC (permalink / raw)
  To: David Vrabel
  Cc: Andrew Jones, x86, linux-kernel, Ingo Molnar, H. Peter Anvin,
	xen-devel, Boris Ostrovsky, Thomas Gleixner

2014-05-13 18:18+0100, David Vrabel:
> On 13/05/14 17:56, Radim Krčmář wrote:
> > Execution is not going to continue after telling Xen about the crash.
> > Let other panic notifiers run by postponing the final hypercall as much
> > as possible.
> 
> I can't tell how important this fix is.

Sorry, I could have put reasoning in the commit:

Not very important, depends on long linux+xen is going to last.
This patch is thinking about users/developers that would eventually find
a problem with it, and questioned our inteligence -- it makes no sense
to use the default priority for a notifier that is (can be) final.
INT_MIN is set because I don't think that Xen indended to resume domains
after crash.  (We should reason any other value as well.)

> What notifiers does this allow to be run?  How important are they?

Priority 0 (default) or lower.  Registration is stable and paravirt does
it early, so there won't be many priority 0 users before it. (None now.)

Hardware that can be passed through (most notably graphic cards), and
few debug markers (dump_kernel_offset, hung_task_panic) are affected at
the moment.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xen/x86: set panic notifier priority to minimum
  2014-05-13 16:56 [PATCH] xen/x86: set panic notifier priority to minimum Radim Krčmář
                   ` (2 preceding siblings ...)
  2014-05-15 14:56 ` David Vrabel
@ 2014-05-15 14:56 ` David Vrabel
  3 siblings, 0 replies; 8+ messages in thread
From: David Vrabel @ 2014-05-15 14:56 UTC (permalink / raw)
  To: Radim Krčmář, linux-kernel
  Cc: Andrew Jones, Konrad Rzeszutek Wilk, Boris Ostrovsky,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, xen-devel

On 13/05/14 17:56, Radim Krčmář wrote:
> Execution is not going to continue after telling Xen about the crash.
> Let other panic notifiers run by postponing the final hypercall as much
> as possible.

Applied to devel/for-linus-3.16

Thanks.

David

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xen/x86: set panic notifier priority to minimum
  2014-05-13 16:56 [PATCH] xen/x86: set panic notifier priority to minimum Radim Krčmář
  2014-05-13 17:18 ` David Vrabel
  2014-05-13 17:18 ` David Vrabel
@ 2014-05-15 14:56 ` David Vrabel
  2014-05-15 14:56 ` David Vrabel
  3 siblings, 0 replies; 8+ messages in thread
From: David Vrabel @ 2014-05-15 14:56 UTC (permalink / raw)
  To: Radim Krčmář, linux-kernel
  Cc: Andrew Jones, x86, Ingo Molnar, H. Peter Anvin, xen-devel,
	Thomas Gleixner, Boris Ostrovsky

On 13/05/14 17:56, Radim Krčmář wrote:
> Execution is not going to continue after telling Xen about the crash.
> Let other panic notifiers run by postponing the final hypercall as much
> as possible.

Applied to devel/for-linus-3.16

Thanks.

David

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-15 14:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 16:56 [PATCH] xen/x86: set panic notifier priority to minimum Radim Krčmář
2014-05-13 17:18 ` David Vrabel
2014-05-13 18:36   ` Radim Krčmář
2014-05-13 18:36   ` Radim Krčmář
2014-05-13 17:18 ` David Vrabel
2014-05-15 14:56 ` David Vrabel
2014-05-15 14:56 ` David Vrabel
  -- strict thread matches above, loose matches on Subject: below --
2014-05-13 16:56 Radim Krčmář

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.