Re: [PATCH -mm -v2] x86 boot : export boot_params via sysfs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <greg@...>
Cc: H. Peter Anvin <hpa@...>, Huang, Ying <ying.huang@...>, <akpm@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, Andi Kleen <ak@...>, <linux-kernel@...>, Kexec Mailing List <kexec@...>
Date: Wednesday, December 12, 2007 - 6:52 pm

Greg KH <greg@kroah.com> writes:


The structure has grown and fields have been added in a backwards
compatible way.  It is very much an ABI from the bootloader to the
kernel.


/proc/kmem?  All of this work happens in user space.  The kexec
syscall interface is just load these chunks of data at this these
addresses and finally jump to this address.

All of the interesting kexec work happens in user space, and it needs
to stay that way.  Otherwise we loose the flexibility and simplicity
on the kernel side.


So all of the fields are binary.
The entire structure is binary.
The native format is binary.

So either we need to export the processed and chewed up version of the
information like we do today in /proc/iomem.  Or we need to export the
raw binary format.


Well /sbin/kexec fundamentally has to "know" the layout of that binary
blob because it generates it and hands it to the kernel.

Greg I think I am with you on this one.  If something other then
/sbin/kexec is going to use that information we need to split it
by field, although I expect the fields to remain binary.  Things
like the e820 memory map and most of the other fields are binary
structures defined to be returned by the firmware so at that level
we have extremely well defined binary blobs, that may possibly
be used for other things.

/sbin/kexec needs to retain the ability to parse and understand the
information because frequently it needs to change little things like
the memory map and the command line and possibly other things so it
can't blindly pass this information through.

Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH -mm -v2] x86 boot : export boot_params via sysfs, Eric W. Biederman, (Wed Dec 12, 6:52 pm)
Re: [PATCH -mm -v2] x86 boot : export boot_params via sysfs, Eric W. Biederman, (Wed Dec 12, 7:08 pm)