From: Ian Campbell Subject: Re: [PATCH] x86: Support booting a bzImage format domain 0 kernel Date: Thu, 22 Jan 2009 13:20:42 +0000 Message-ID: <1232630442.22248.182.camel@zakaz.uk.xensource.com> References: <7a066b74dd1939aa55f6.1232625186@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7a066b74dd1939aa55f6.1232625186@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 2009-01-22 at 11:53 +0100, Ian Campbell wrote: > x86: Support booting a bzImage format domain 0 kernel. I got carried away with some last minute cleanups so you'll need this extra bonus patch. diff -r 7a066b74dd19 xen/arch/x86/bzimage.c --- a/xen/arch/x86/bzimage.c Thu Jan 22 11:51:15 2009 +0000 +++ b/xen/arch/x86/bzimage.c Thu Jan 22 13:19:45 2009 +0000 @@ -201,6 +201,7 @@ int __init bzimage_headroom(char *image_ return err; img = image_start + (hdr->setup_sects+1) * 512; + img += hdr->payload_offset; headroom = gzip_length(img, hdr->payload_length); headroom += headroom >> 12; /* Add 8 bytes for every 32K input block */