aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorarun.sharma@intel.com[iap10] <arun.sharma@intel.com[iap10]>2005-06-11 01:12:58 +0000
committerarun.sharma@intel.com[iap10] <arun.sharma@intel.com[iap10]>2005-06-11 01:12:58 +0000
commit74bb5fc927ebb54da258543b5d6bad4e2c953b34 (patch)
tree63a4dc89b9dfe425db6fc11ff6d68a14d9c019e2 /tools
parentb8eed10db81736f509bb2317ddab23e5b634df2f (diff)
downloadxen-74bb5fc927ebb54da258543b5d6bad4e2c953b34.tar.gz
xen-74bb5fc927ebb54da258543b5d6bad4e2c953b34.tar.bz2
xen-74bb5fc927ebb54da258543b5d6bad4e2c953b34.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py1
-rw-r--r--tools/python/xen/xend/image.py6
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 16415d78a7..5baa306195 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -701,6 +701,7 @@ class XendDomainInfo:
ctrl.initController(reboot=True)
else:
self.create_configured_devices()
+ self.image.createDeviceModel()
def device_create(self, dev_config):
"""Create a new device.
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
index e0d70581bf..deb77b066c 100644
--- a/tools/python/xen/xend/image.py
+++ b/tools/python/xen/xend/image.py
@@ -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.XendError import VmError
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 @@ class VmxImageHandler(ImageHandler):
+ " -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):