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

RE: [Xen-devel] Version Detection

To: "Petersson, Mats" <mats.petersson@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Version Detection
From: Quang Ngo <quang4ngo@xxxxxxxxxxx>
Date: Tue, 19 Jun 2007 08:47:09 -0700
Delivery-date: Tue, 19 Jun 2007 08:45:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Mats,
 
Thanks for your response.  It would be nice if there is some sort of version info in the XEN vmlinuz image.  Regular vmlinuz has signature at offset 0x202 ("HdrS") and kernel info at an offset (specified at 0x20e) + 0x200.
 
Also, I wish there is version info in /proc/xen.
 
If you find a way to find version info for a XEN vmlinuz image please let me know.
 
Thanks,
Quang
 


> Date: Tue, 19 Jun 2007 12:58:48 +0200
> From: Mats.Petersson@xxxxxxx
> To: quang4ngo@xxxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-devel] Version Detection
> > -----Original Message-----
> > From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> > [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Quang Ngo
> > Sent: 18 June 2007 19:32
> > To: xen-devel@xxxxxxxxxxxxxxxxxxx
> > Subject: [Xen-devel] Version Detection
> >
> > Given the /boot/xen-gz and /vmlinuz files, how do you detect
> > which version of XEN and Linux kernel these files are?
> > Basically, I need to parse their contents and check for their
> > signatures and embedded version strings, if any.
> > Unfortunately, I'm unable to find information on the formats
> > of these files.
>
> For the standard build of Xen, examining the binaries will not trivially
> tell which version of Xen it is. There are functions in
> .../xen/common/version.c, but those return one small part of the whole
> version numbegr (eg 3.1.0 is major = 3, minor=1, extra="0") as integers
> and strings respectively.
>
> There is no "encoded" version numbers in some header or datablock that
> you can search for, as far as I can see.
>
> Of course, "xm info" once the binary is booted would give you all the
> info you need and more.
>
> I haven't looked at the "vmlinuz" if it's got any version info.
>
> --
> Mats

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>