All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Allow --dump-dmesg for Xen vmcores
@ 2014-03-19  9:27 Petr Tesarik
  2014-03-20  2:58 ` Atsushi Kumagai
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Tesarik @ 2014-03-19  9:27 UTC (permalink / raw)
  To: Atsushi Kumagai; +Cc: kexec

If a Xen dump is detected, makedumpfile checks that the target format is
ELF. The real reason is that compressed formats are not possible with Xen.

But there's a third way initial_xen() can be called: with --dump-dmesg.
This variant works in fact, so it's enough to extend the check so that
it covers this case.

Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
---
 makedumpfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index 0bd8b55..ea29239 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -7660,7 +7660,7 @@ initial_xen(void)
 	MSG("Xen is not supported on powerpc.\n");
 	return FALSE;
 #else
-	if(!info->flag_elf_dumpfile) {
+	if(!info->flag_elf_dumpfile && !info->flag_dmesg) {
 		MSG("Specify '-E' option for Xen.\n");
 		MSG("Commandline parameter is invalid.\n");
 		MSG("Try `makedumpfile --help' for more information.\n");
-- 
1.8.4.5

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

* RE: [PATCH] Allow --dump-dmesg for Xen vmcores
  2014-03-19  9:27 [PATCH] Allow --dump-dmesg for Xen vmcores Petr Tesarik
@ 2014-03-20  2:58 ` Atsushi Kumagai
  0 siblings, 0 replies; 2+ messages in thread
From: Atsushi Kumagai @ 2014-03-20  2:58 UTC (permalink / raw)
  To: ptesarik; +Cc: kexec

Hello Petr,

>If a Xen dump is detected, makedumpfile checks that the target format is
>ELF. The real reason is that compressed formats are not possible with Xen.
>
>But there's a third way initial_xen() can be called: with --dump-dmesg.
>This variant works in fact, so it's enough to extend the check so that
>it covers this case.
>
>Signed-off-by: Petr Tesarik <ptesarik@suse.cz>

Good fix, I'll merge this patch into v1.5.6.


Thanks
Atsushi Kumagai

>---
> makedumpfile.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/makedumpfile.c b/makedumpfile.c
>index 0bd8b55..ea29239 100644
>--- a/makedumpfile.c
>+++ b/makedumpfile.c
>@@ -7660,7 +7660,7 @@ initial_xen(void)
> 	MSG("Xen is not supported on powerpc.\n");
> 	return FALSE;
> #else
>-	if(!info->flag_elf_dumpfile) {
>+	if(!info->flag_elf_dumpfile && !info->flag_dmesg) {
> 		MSG("Specify '-E' option for Xen.\n");
> 		MSG("Commandline parameter is invalid.\n");
> 		MSG("Try `makedumpfile --help' for more information.\n");
>--
>1.8.4.5
>
>_______________________________________________
>kexec mailing list
>kexec@lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2014-03-20  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19  9:27 [PATCH] Allow --dump-dmesg for Xen vmcores Petr Tesarik
2014-03-20  2:58 ` Atsushi Kumagai

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.