[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [xend] Add 'xend_config_format' field to the Xend information block.
# HG changeset patch # User Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx> # Node ID 4d8ab492bdee7c416ac3722c91680c9bb760d33f # Parent a61b92fc2966c4b95b66042e243daacb61da124f [xend] Add 'xend_config_format' field to the Xend information block. When running 'xm info' it appears thus: # xm info host : 10.13.4.252 release : 2.6.17-1.2157_FC5xen0 version : #1 SMP Tue Jul 11 23:30:05 EDT 2006 machine : x86_64 ...snipped rest of data... cc_compile_domain : build.redhat.com cc_compile_date : Tue Jul 11 22:50:42 EDT 2006 xend_config_format : 2 It will also appear in the SEXPR returned when doing a GET on the /xend/node path in XenD's HTTP service: (node (system Linux) (host 10.13.4.252) (release 2.6.17-1.2157_FC5xen0) (version '#1 SMP Tue Jul 11 23:30:05 EDT 2006') (machine x86_64) ...snipped rest of data... (cc_compile_domain build.redhat.com) (cc_compile_date 'Tue Jul 11 22:50:42 EDT 2006') (xend_config_format 2) ) The patch sets the format to value '2' to indicate that we're on the version with the new style HVM configuration for CDROM devices. The old style having implicitly been version '1'. Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> --- tools/python/xen/xend/XendNode.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) diff -r a61b92fc2966 -r 4d8ab492bdee tools/python/xen/xend/XendNode.py --- a/tools/python/xen/xend/XendNode.py Mon Aug 21 00:01:11 2006 +0100 +++ b/tools/python/xen/xend/XendNode.py Mon Aug 21 00:11:17 2006 +0100 @@ -46,7 +46,8 @@ class XendNode: return self.xc.bvtsched_global_get() def info(self): - return self.nodeinfo() + self.physinfo() + self.xeninfo() + return (self.nodeinfo() + self.physinfo() + self.xeninfo() + + self.xendinfo()) def nodeinfo(self): (sys, host, rel, ver, mch) = os.uname() @@ -100,6 +101,9 @@ class XendNode: return [[k, info[k]] for k in ITEM_ORDER] + def xendinfo(self): + return [['xend_config_format', 2]] + def instance(): global inst _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |