From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp02.citrix.com ([66.165.176.63]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UDvh1-0004vR-6U for kexec@lists.infradead.org; Fri, 08 Mar 2013 11:42:35 +0000 Message-ID: <5139CEA3.6000700@citrix.com> Date: Fri, 8 Mar 2013 11:42:27 +0000 From: David Vrabel MIME-Version: 1.0 Subject: Re: [PATCH 4/8] kexec: add infrastructure for handling kexec images References: <1361468894-18655-1-git-send-email-david.vrabel@citrix.com> <1361468894-18655-5-git-send-email-david.vrabel@citrix.com> <20130308113708.GF10740@debian70-amd64.local.net-space.pl> In-Reply-To: <20130308113708.GF10740@debian70-amd64.local.net-space.pl> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Daniel Kiper Cc: "kexec@lists.infradead.org" , "xen-devel@lists.xen.org" On 08/03/13 11:37, Daniel Kiper wrote: > On Thu, Feb 21, 2013 at 05:48:10PM +0000, David Vrabel wrote: >> From: David Vrabel >> >> Add the code needed to handle and load kexec images into Xen memory or >> into the crash region. This is needed for the new KEXEC_CMD_load and >> KEXEC_CMD_unload hypercall sub-ops. >> >> Much of this code is derived from the Linux kernel. >> >> Signed-off-by: David Vrabel > > [...] > >> diff --git a/xen/common/kimage.c b/xen/common/kimage.c > > [...] > >> +static int kimage_load_segment(struct kexec_image *image, xen_kexec_segment_t *segment) >> +{ >> + int result = -ENOMEM; > > Somewhere should be a check that arhitecture of loaded image > is compatible with arhitecture on which we currently running. See machine_kexec_load() in patch 5. David _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec