[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xm --version
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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |