WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [PATCH] [PATCH] vmx-device-models-py.patch
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Sat, 11 Jun 2005 01:12:58 +0000
Delivery-date: Sat, 18 Jun 2005 01:00:47 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1714, 2005/06/11 02:12:58+01:00, arun.sharma@xxxxxxxxx

        [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@xxxxxxxxx>



 XendDomainInfo.py |    1 +
 image.py          |    6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)


diff -Nru a/tools/python/xen/xend/XendDomainInfo.py 
b/tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   2005-06-17 21:01:51 -04:00
+++ b/tools/python/xen/xend/XendDomainInfo.py   2005-06-17 21:01:51 -04:00
@@ -701,6 +701,7 @@
                 ctrl.initController(reboot=True)
         else:
             self.create_configured_devices()
+        self.image.createDeviceModel()
 
     def device_create(self, dev_config):
         """Create a new device.
diff -Nru a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    2005-06-17 21:01:51 -04:00
+++ b/tools/python/xen/xend/image.py    2005-06-17 21:01:51 -04:00
@@ -1,4 +1,4 @@
-import os
+import os, string
 
 import xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
 from xen.xend import sxp
@@ -6,6 +6,8 @@
 from xen.xend.XendLogging import log
 from xen.xend.xenstore import DBVar
 
+from xen.xend.server import channel
+
 class ImageHandler:
     """Abstract base class for image handlers.
 
@@ -303,7 +305,7 @@
                   + " -f %s" % device_config
                   + self.vncParams()
                   + " -d %d" % self.vm.getDomain()
-                  + " -p %d" % self.device_channel['port1']
+                  + " -p %d" % (int(self.device_channel.port1)-1)
                   + " -m %s" % self.vm.memory)
 
     def vncParams(self):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [PATCH] [PATCH] vmx-device-models-py.patch, BitKeeper Bot <=