ia64/xen-unstable

changeset 5437:dbf01762fd88

bitkeeper revision 1.1714 (42aa3a9a496MHCAuDASFOLRgBsKcZQ)

[PATCH] [PATCH] vmx-device-models-py.patch

Start device models for VMX domains. I'm not sure why the event channel port number is off by 1.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[iap10]
date Sat Jun 11 01:12:58 2005 +0000 (2005-06-11)
parents 4bd5cde7b930
children c45207396f75
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Sat Jun 11 01:10:56 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sat Jun 11 01:12:58 2005 +0000
     1.3 @@ -701,6 +701,7 @@ class XendDomainInfo:
     1.4                  ctrl.initController(reboot=True)
     1.5          else:
     1.6              self.create_configured_devices()
     1.7 +        self.image.createDeviceModel()
     1.8  
     1.9      def device_create(self, dev_config):
    1.10          """Create a new device.
     2.1 --- a/tools/python/xen/xend/image.py	Sat Jun 11 01:10:56 2005 +0000
     2.2 +++ b/tools/python/xen/xend/image.py	Sat Jun 11 01:12:58 2005 +0000
     2.3 @@ -1,4 +1,4 @@
     2.4 -import os
     2.5 +import os, string
     2.6  
     2.7  import xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
     2.8  from xen.xend import sxp
     2.9 @@ -6,6 +6,8 @@ from xen.xend.XendError import VmError
    2.10  from xen.xend.XendLogging import log
    2.11  from xen.xend.xenstore import DBVar
    2.12  
    2.13 +from xen.xend.server import channel
    2.14 +
    2.15  class ImageHandler:
    2.16      """Abstract base class for image handlers.
    2.17  
    2.18 @@ -303,7 +305,7 @@ class VmxImageHandler(ImageHandler):
    2.19                    + " -f %s" % device_config
    2.20                    + self.vncParams()
    2.21                    + " -d %d" % self.vm.getDomain()
    2.22 -                  + " -p %d" % self.device_channel['port1']
    2.23 +                  + " -p %d" % (int(self.device_channel.port1)-1)
    2.24                    + " -m %s" % self.vm.memory)
    2.25  
    2.26      def vncParams(self):