ia64/xen-unstable

changeset 15172:5efb46bfbcac

[XEND] Write the default ABI to the xenstore entry for each frontend
device.

This allows to run older kernels in a 32on64 mixed environment.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Tue May 15 19:00:48 2007 +0100 (2007-05-15)
parents 5c7a1e3abd54
children 9ec165fa8128
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/server/DevController.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue May 15 17:54:48 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue May 15 19:00:48 2007 +0100
     1.3 @@ -357,6 +357,8 @@ class XendDomainInfo:
     1.4          self.console_port = None
     1.5          self.console_mfn = None
     1.6  
     1.7 +        self.native_protocol = None
     1.8 +
     1.9          self.vmWatch = None
    1.10          self.shutdownWatch = None
    1.11          self.shutdownStartTime = None
    1.12 @@ -1520,6 +1522,8 @@ class XendDomainInfo:
    1.13                  self.console_mfn = channel_details['console_mfn']
    1.14              if 'notes' in channel_details:
    1.15                  self.info.set_notes(channel_details['notes'])
    1.16 +            if 'native_protocol' in channel_details:
    1.17 +                self.native_protocol = channel_details['native_protocol'];
    1.18  
    1.19              self._introduceDomain()
    1.20  
     2.1 --- a/tools/python/xen/xend/server/DevController.py	Tue May 15 17:54:48 2007 +0100
     2.2 +++ b/tools/python/xen/xend/server/DevController.py	Tue May 15 19:00:48 2007 +0100
     2.3 @@ -459,6 +459,8 @@ class DevController:
     2.4              'state' : str(xenbusState['Initialising'])
     2.5              })
     2.6  
     2.7 +        if self.vm.native_protocol:
     2.8 +            frontDetails.update({'protocol' : self.vm.native_protocol})
     2.9  
    2.10          backDetails.update({
    2.11              'domain' : self.vm.getName(),