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

[Xen-devel] kexec/kdump for Xen - implementation question

To: konrad.wilk@xxxxxxxxxx, ian.campbell@xxxxxxxxxx, vgoyal@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Subject: [Xen-devel] kexec/kdump for Xen - implementation question
From: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Date: Mon, 6 Jun 2011 18:04:34 +0200
Cc:
Delivery-date: Mon, 06 Jun 2011 09:05:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.3.28i
Hi,

Currently, I am working on kexec/kdump for Xen with emphasis on dom0
implementation issues. After reviewing relevant Xen Linux Kernel
Ver. 2.6.18 code I realized (as I expected) that original kexec/kdump
in mainline kernel should be extensively amended. Further, after some
discussion with Konrad Rzeszutek Wilk and Ian Campbell it was clear
for me that it could be done in a few diffrent ways. Due to this facts
I decided to establish general implementation details with LKML and
Xen-devel community to avoid extensive code rewrite in case my own
proposal would not be accepted.

Now I think about four solutions. I will present them in order of my
preference. However, if you have another soultions to that problem
please drop me a line.

1) Currently existing kexec/kdump implementation should be amended
   by adding Xen specific code mainly in arch/i386. It should look
   like:

   void machine_kexec(struct kimage *image)
   {
   #ifdef CONFIG_XEN
      if (xen_initial_domain()) {
        ...
        Xen specific code
        ...
      }
   #endif

     ...
     generic kexec/kdump code
     ...
   }

2) Information about architecture depended kexec/kdump code should
   be stored in struct machine_kexec_ops. It should contain
   references to machine specific functions:

   struct machine_kexec_ops {
     void (*machine_kexec)(struct kimage *image);
     ...
   }

   This structure should be initialized properly at system startup.

3) kexec-tools should be able to detect current machine type. If it
   detects Xen hypervisor it should call relevant (Xen specific)
   ioctl() to perform kexec (Xen specific) instead of standard
   kexec syscall.

4) kexec-tools should be able to detect current machine type. If it
   detects Xen hypervisor it should call newly established Xen specific
   kexec syscall (lets call it sys_kexec_load_xen()) to perform kexec
   (Xen specific) instead of standard kexec syscall.

I am looking forward for your comments, suggestions, etc.

Daniel

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

<Prev in Thread] Current Thread [Next in Thread>