[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-xen-discuss
Subject:    Re: [xen-discuss] get Xen version and functionality of a
From:       David Edmondson <dme () sun ! com>
Date:       2007-08-08 7:13:11
Message-ID: 20070808071310.GA18047 () enoexec ! uk ! sun ! com
[Download RAW message or body]

On Wed, Aug 08, 2007 at 08:41:00AM +0200, Bernd Schemmer wrote:
> David Edmondson wrote:
>> On Tue, Aug 07, 2007 at 02:23:04PM -0700, Bernd Schemmer wrote:
>>   
>>> is it possible to read the Xen Version and the Xen features (PAE,
>>> non-PAE) from a Linux kernel?
>>>     
>>
>> "xm info" returns a bunch of information about the underlying
>> hypervisor if you are in user-space. I imagine that there's similar
>> available for access from the kernel.
> 
> thanks for the info but that's not exactly what I'm looking for.
>
> My goal is to get this information from the file containing the Linux 
> Kernel without starting a DomU, e.g.

Ah, I understand now. Sorry for being slow.

> Given the files
>
> xtrnaw7@T30:/data/download/Fedora-7-i386$ ls
> F-7-i386-DVD.iso       fc7.img          initrd.img  vmlinuz
> F-7-i386-rescuecd.iso  fc7_install.cfg  SHA1SUM
>
> I want to know the options supported by  the kernel vmlinuz without having 
> to create a DomU.

>From the implementation of libxc[1] it seems that there are ELF notes
declaring the PAE capabilities of the kernel. You can see the set of
notes used in elfnote.h[2]. The notes can be examined using 'elfdump
-n file'. PAE capability is declared in a note of type 9.

dme.

Footnotes: 
[1]  http://movementarian.org/solaris-xen/xen-gate/xen.hg/tools/libxc/xc_load_elf.c
[2]  http://movementarian.org/solaris-xen/xen-gate/xen.hg/xen/include/public/elfnote.h
_______________________________________________
xen-discuss mailing list
xen-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic