Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760923Ab3GSSdA (ORCPT ); Fri, 19 Jul 2013 14:33:00 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:44835 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753570Ab3GSSc7 (ORCPT ); Fri, 19 Jul 2013 14:32:59 -0400 Date: Fri, 19 Jul 2013 20:32:35 +0200 From: Daniel Kiper To: Greg KH Cc: Konrad Rzeszutek Wilk , Eric Biederman , linux-kernel@vger.kernel.org, Brandon Philips , xen-devel@lists.xensource.com, virtualization@lists.linux-foundation.org Subject: Re: is kexec on Xen domU possible? Message-ID: <20130719183235.GA12267@debian70-amd64.local.net-space.pl> References: <20130719020603.GA22932@kroah.com> <20130719131819.GC11233@debian70-amd64.local.net-space.pl> <20130719151243.GA15488@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130719151243.GA15488@kroah.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2659 Lines: 53 On Fri, Jul 19, 2013 at 08:12:43AM -0700, Greg KH wrote: > On Fri, Jul 19, 2013 at 03:18:19PM +0200, Daniel Kiper wrote: > > > support is "easy" after your patches go in, is that because Dom0 needs > > > to support this, or is it something specific to only domU? > > > > In case of domU we should consider following cases: > > - PV guests: there is no support for kexec at this time; > > Once I wrote an implementatation for that type of guests > > for one company but according to our agreement I could not > > publish this code; However, I could use it as a base for > > publicly available kexec implementation; Currently, I do > > not have any plans to work on this due to some more important > > stuff to do; However, question about kexec support for PV > > guests is raised from time to time and maybe this issue > > will be much more important than others once, > > - HVM guests: kexec should work without any issue, > > - PVonHVM guests: IIRC, there were some issues with PV > > drivers but they were fixed some time ago by patches > > posted by Olaf Hering, > > - PVH guests: those type of guests are not available in Xen > > current releases yet; However, Konrad Wilk done some preliminary > > work on kexec support but there are still some issues to resolve. > > > > I do not know what are you trying to do but if you would like > > to get some crash dumps there is also another solution to that. > > You could use xm/xl dump-core from Dom0 to get dumps of domU memory. > > As Brandon said, we were trying to use kexec in a PV guest in domU to > run another kernel. I had assumed this wouldn't need support from dom0. You are right. > As you have implemented this in the past, did you need to change dom0 in > order to achieve this, and if so, why? It was strong requirement to not change anything in hypervisor or dom0. I succeeded to do that but it requires changes in kernel and kexec-tools. > The errors that the kexec tools seem to run into is finding the memory > to place the new kernel into, is that just an issue that PV guests > aren't given enough kernel memory in which to replicate themselves from > dom0? There are a lot of differences between baremetal machines and PV guests. For example you are not able to do identity mapping per se in PV guests. Arguments to new kernel are passed in completely different way. etc. Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/