WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] x86: Support booting a bzImage format domain 0 k

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [PATCH] x86: Support booting a bzImage format domain 0 kernel
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Thu, 22 Jan 2009 13:20:42 +0000
Delivery-date: Thu, 22 Jan 2009 05:21:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7a066b74dd1939aa55f6.1232625186@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <7a066b74dd1939aa55f6.1232625186@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 */




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>