From: Ian Campbell <ijc@hellion.org.uk>
To: Mark McLoughlin <markmc@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Jeremy Fitzhardinge <jeremy@goop.org>,
virtualization@lists.linux-foundation.org
Subject: Re: [PATCHv3 1/3] x86: use ELF format in compressed images.
Date: Thu, 14 Feb 2008 17:01:30 +0000 [thread overview]
Message-ID: <1203008490.30818.69.camel@localhost.localdomain> (raw)
In-Reply-To: <1202988844.26435.4.camel@muff>
On Thu, 2008-02-14 at 11:34 +0000, Mark McLoughlin wrote:
> On Wed, 2008-02-13 at 20:54 +0000, Ian Campbell wrote:
> > This allows other boot loaders such as the Xen domain builder the
> > opportunity to extract the ELF file.
>
> Right, Xen currently can't boot bzImage (it needs the ELF image) so you
> still can't use the same kernel image on Xen as bare-metal.
I have a xen domain builder patch as well. I was waiting for the Linux
side to gain some traction before putting it forward (I'd attach it now
but it's at home on a laptop which is sleeping).
> > +Field name: compressed_payload_offset
> > +Type: read
> > +Offset/size: 0x248/4
> > +Protocol: 2.08+
> > +
> > + If non-zero then this field contains the offset from the end of the
> > + real-mode code to the compressed payload. The compression format
> > + should be determined using the standard magic number, currently only
> > + gzip is used.
>
> Should probably mention that the payload format is expected to be ELF.
Agreed. Probably the same deal as the compression format, i.e. use the
magic number but only ELF is possible today (even less likely to change
than the compression format I guess...).
> How about this?
>
> +sed-offsets := -e 's/^00*/0/' \
> + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/-D\2=0x\1 /p'
> +
> +$(obj)/header.o: AFLAGS_header.o += $(shell $(NM) $(obj)/compressed/vmlinux | sed -n $(sed-offsets))
> +$(obj)/header.o: $(obj)/compressed/vmlinux FORCE
That's probably a neater way of doing it. Although the ".../header.o:
AFLAGS_header.o" is redundant, either
header.o: AFLAGS += foo
or
AFLAGS_header.o += foo
with the second being preferred in Linux Makefiles I think.
I'll try and get an updated patch out before I head for my flight
tomorrow.
Ian.
--
Ian Campbell
Current Noise: Reverend Bizarre - The Festival
While money can't buy happiness, it certainly lets you choose your own
form of misery.
next prev parent reply other threads:[~2008-02-14 17:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 20:54 [PATCHv3 0/3] x86: boot protocol updates Ian Campbell
2008-02-13 20:54 ` [PATCHv3 1/3] x86: use ELF format in compressed images Ian Campbell
2008-02-13 20:54 ` [PATCHv3 2/3] x86: add a crc32 checksum to the kernel image Ian Campbell
2008-02-13 20:55 ` [PATCHv3 3/3] x86: bump image header to version 2.08 Ian Campbell
2008-02-14 11:34 ` [PATCHv3 1/3] x86: use ELF format in compressed images Mark McLoughlin
2008-02-14 17:01 ` Ian Campbell [this message]
2008-02-14 17:37 ` Mark McLoughlin
2008-02-14 17:51 ` Ian Campbell
2008-02-14 17:57 ` Ian Campbell
2008-02-14 21:10 ` Jeremy Fitzhardinge
2008-02-14 21:14 ` H. Peter Anvin
2008-02-15 6:37 ` Jeremy Fitzhardinge
2008-02-14 18:29 ` Ian Campbell
2008-02-14 18:30 ` H. Peter Anvin
2008-04-06 7:03 ` Yinghai Lu
2008-04-06 10:22 ` Ian Campbell
2008-04-06 16:38 ` H. Peter Anvin
2008-04-06 17:19 ` Yinghai Lu
2008-04-06 17:25 ` H. Peter Anvin
2008-04-06 17:34 ` Yinghai Lu
2008-02-17 14:04 ` [PATCHv3 0/3] x86: boot protocol updates Thomas Gleixner
2008-02-19 8:16 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1203008490.30818.69.camel@localhost.localdomain \
--to=ijc@hellion.org.uk \
--cc=hpa@zytor.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markmc@redhat.com \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox