Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 11 Nov 2002 13:21:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 11 Nov 2002 13:21:10 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:58698 "EHLO frodo.biederman.org") by vger.kernel.org with ESMTP id ; Mon, 11 Nov 2002 13:21:08 -0500 To: Andy Pfiffer Cc: landley@trommello.org, Linus Torvalds , Alan Cox , Werner Almesberger , Suparna Bhattacharya , Jeff Garzik , "Matt D. Robinson" , Rusty Russell , Linux Kernel Mailing List , lkcd-general@lists.sourceforge.net, lkcd-devel@lists.sourceforge.net Subject: Re: kexec (was: [lkcd-devel] Re: What's left over.) References: <1036697556.10457.254.camel@andyp> <200211080536.31287.landley@trommello.org> <1037037508.13280.11.camel@andyp> From: ebiederm@xmission.com (Eric W. Biederman) Date: 11 Nov 2002 11:25:06 -0700 In-Reply-To: <1037037508.13280.11.camel@andyp> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1487 Lines: 33 Andy Pfiffer writes: > On Thu, 2002-11-07 at 21:36, Rob Landley wrote: > > > It strikes me that "load a blob of data into physical memory and keep it there > > > until further notice" is actually relatively generic mechanism, and something > > > there might be other reasons for root or various devices to do. (DSPs that > > want their firmware in system ram? 3D models and textures for an onboard > > video card?) If I'm wrong, would somebody be kind enough to tell me why? > > > > Rob > > > Yes, that is rather generic -- somewhat like a variable-sized ramdisk. > > I think the key difference is that the ramdisk wants to hold blobs of > data that will be accessed from user-mode by read & write. kexec at least at the end, and probably for earlier for handling panics wants code to be in a very specific location in ram. If you want to hook the functionality behind in behind kexec_load, when say KEXEC_FIXED is passed as a flag, go ahead. There is enough other setup to jump to the code loaded into memory that "load a blob of data into physical memory and keep it there" is not a sufficient interface. In the general case I using some kind of scatter gather list seems the most polite way to go. Eric - 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/