All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "Zhang, Yang Z" <yang.z.zhang@intel.com>
Cc: "david.vrabel@citrix.com" <david.vrabel@citrix.com>,
	Daniel Kiper <dkiper@net-space.pl>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: kexec and kdump  on Xen??
Date: Thu, 17 Apr 2014 10:50:19 +0100	[thread overview]
Message-ID: <534FA3DB.3070103@citrix.com> (raw)
In-Reply-To: <A9667DDFB95DB7438FA9D7D576C3D87E0AA96B00@SHSMSX104.ccr.corp.intel.com>

On 17/04/14 02:19, Zhang, Yang Z wrote:
>
>>> Here is my environment:
>>> Xen version: latest Xen
>>> Xen boot command:
>>> 	kernel (hd0,0)/boot/xen.gz dom0_mem=4096M loglvl=all
>>> guest_loglvl=all
>> conring_size=4M crashkernel=128M@64M
>>>     module (hd0,0)/boot/vmlinuz-xen o
>> root=UUID=03a5e7c4-b8d0-45b4-a090-c34b06821cea pci=noaer max_loop=64
>> 3 debug
>>>     module (hd0,0)/boot/initrd-xen.img kexec version with Xen enabled:
>>> kexec-tools 2.0.6 released 18 April 2014
>>>
>>> Also, it shows error when trying to kexec (Xen -> Xen) ./kexec -l
>>> /boot/xen.gz Segmentation fault (core dumped)
>> We were focusing more on kdump than on other scenarios.
>> I suppose that kexec-tools assume that this compressed ELF file is
>> Linux Kernel and tries load it as usual which of course is completely
>> wrong. You should load Xen with at least "-t multiboot-x86" argument (read help printed by kexec).
>> However, I am not sure that this loader is actively maintained and works.
>>
>> Daniel
> Thanks for your comments.
>
> After investigation, I found some bugs (One is the segment overlap check failure and another one is related to x2apic). With some workarounds, now I am able to kexec from Xen into Linux.
> But it still fails to run kdump(Xen->linux). I add some debug messages in the key code path. It shows kexec_reloc() will cause machine reboot. Is it a known issue?
>
> BTW: Have you ever tried kdump(Xen->linux) successfully? If yes, can you share some BKMs? Thanks.
>
> Best regards,
> Yang

You are going to have to be more descriptive than this with setups and
problems.

As for real examples,  XenServer unconditionally sets up a native crash
kernel and does use it in the case of a Xen/dom0 crash.  It does work
reliably and repeatedly[1] and is routinely tested.

~Andrew

[1] We are aware of one hardware specific bug whereby the crash kernel
fails to set up a timer interrupt.  Investigating it is on my todo list.

  reply	other threads:[~2014-04-17  9:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14  3:38 kexec and kdump on Xen? Zhang, Yang Z
2014-04-14  8:11 ` kexec and kdump on Xen?? Daniel Kiper
2014-04-14  8:15   ` Zhang, Yang Z
2014-04-14 13:26     ` Daniel Kiper
2014-04-15  2:13       ` Zhang, Yang Z
2014-04-16 11:10         ` Daniel Kiper
2014-04-17  1:19           ` Zhang, Yang Z
2014-04-17  9:50             ` Andrew Cooper [this message]
2014-04-18  1:45               ` Zhang, Yang Z
2014-04-18 12:50                 ` Don Slutz
2014-04-18 16:26                 ` Andrew Cooper
2014-04-17 10:01             ` David Vrabel
2014-04-22 10:14             ` David Vrabel
2014-04-15  6:57       ` Zhang, Yang Z
2014-04-14  9:51 ` kexec and kdump on Xen? David Vrabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=534FA3DB.3070103@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=david.vrabel@citrix.com \
    --cc=dkiper@net-space.pl \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.