ia64/xen-unstable

changeset 11232:4d8ab492bdee

[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@redhat.com>
author Christian Limpach <Christian.Limpach@xensource.com>
date Mon Aug 21 00:11:17 2006 +0100 (2006-08-21)
parents a61b92fc2966
children 58ed222274f2
files tools/python/xen/xend/XendNode.py
line diff
     1.1 --- a/tools/python/xen/xend/XendNode.py	Mon Aug 21 00:01:11 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendNode.py	Mon Aug 21 00:11:17 2006 +0100
     1.3 @@ -46,7 +46,8 @@ class XendNode:
     1.4          return self.xc.bvtsched_global_get()
     1.5      
     1.6      def info(self):
     1.7 -        return self.nodeinfo() + self.physinfo() + self.xeninfo()
     1.8 +        return (self.nodeinfo() + self.physinfo() + self.xeninfo() +
     1.9 +                self.xendinfo())
    1.10  
    1.11      def nodeinfo(self):
    1.12          (sys, host, rel, ver, mch) = os.uname()
    1.13 @@ -100,6 +101,9 @@ class XendNode:
    1.14  
    1.15          return [[k, info[k]] for k in ITEM_ORDER]
    1.16  
    1.17 +    def xendinfo(self):
    1.18 +        return [['xend_config_format',  2]]
    1.19 +
    1.20  
    1.21  def instance():
    1.22      global inst