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.Any help would be appreciated. Thanks,Quang
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Quang Ngo
Sent: 18 June 2007 19:32
To: [email protected]
Subject: [Xen-devel] Version Detection
Quoted 6 lines
Given the
/boot/xen-gzand /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
Quoted 7 lines
Any help would be appreciated.
Thanks,
Quang