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] [PATCH] xm --version

To: Xen Dev <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xm --version
From: aq <aquynh@xxxxxxxxx>
Date: Sun, 5 Jun 2005 22:54:43 -0500
Delivery-date: Mon, 06 Jun 2005 03:53:55 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=ZZJZ/wY6DjmHC5u9UU/eqt8jbv9MUTOuaKkJkjZ9LSpF76sgfnjlLPXSfo9k91cfwwfJrIRpt4WtTd/p8YCZFq3mXmHgv9yXI9ynLYMnHieBCEEY7FaJyfwh652lXGNwtIungizgwjtjRYm9k6h5nR0IAzp+ek3vrM+/D1jBUy4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Reply-to: aq <aquynh@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This patch adds to xm a long-missing function: showing xen version and
few extra information (thanks go to Keir and Mark for some
suggestions). Here is the ouput of "xm info" after applying the patch
(against -unstable ChangeSet@xxxxxx):

---
#xm info
system                 : Linux
host                   : ubuntu
xen_release            : 3.0-devel
xen_compile_by         : root@localdomain
xen_compiler           : gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)
xen_compile_date       : Mon Jun  6 00:30:22 EST 2005
dom0_release           : 2.6.11.10-xen0
dom0_version           : #3 Mon Jun 6 00:32:05 EST 2005
machine                : i686
cores                  : 1
hyperthreads_per_core  : 1
cpu_mhz                : 1094
memory                 : 511
free_memory            : 122
----

You get the point. And here is what the patch does:

- extend xen_version hypercall. the new hypercall keeps the old
behavior if executing it with 0 as its parameter. But if give it the
address of version_op_t structure (see version.h in the patch), it
returns extra stuffs like xen_extraversion, compile date, compiler,
etc...
- libxc now has a new function to get xen version (and stuffs): 
xc_xen_version()
- extend python wrapper for xc_xen_version() and use it in XendNode.py
to get xen version and stuffs.

Any comment?

Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>

# diffstat xminfo2.patch 
 tools/libxc/xc.h                  |   11 +++++++++++
 tools/libxc/xc_misc.c             |   18 ++++++++++++++++++
 tools/python/xen/lowlevel/xc/xc.c |   29 +++++++++++++++++++++++++++++
 tools/python/xen/xend/XendNode.py |   12 ++++++++----
 xen/common/kernel.c               |   22 ++++++++++++++++++----
 xen/include/public/version.h      |   22 ++++++++++++++++++++++
 6 files changed, 106 insertions(+), 8 deletions(-)

Attachment: xminfo2.patch
Description: Text Data

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