Hi, is it possible to read the Xen Version and the Xen features (PAE, non-PAE) from a Linux kernel? If yes, how? regards Bernd This message posted from opensolaris.org
David Edmondson
2007-Aug-08 06:21 UTC
Re: get Xen version and functionality of a Linux kernel
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. dme.
Bernd Schemmer
2007-Aug-08 06:41 UTC
Re: get Xen version and functionality of a Linux kernel
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. > > dme. >Hi, 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. 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. regards Bernd -- Bernd Schemmer, Frankfurt am Main, Germany http://home.arcor.de/bnsmb/index.html M s temprano que tarde el mundo cambiar . Fidel Castro
David Edmondson
2007-Aug-08 07:13 UTC
Re: get Xen version and functionality of a Linux kernel
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 notesdeclaring 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