[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.0-testing] xend: Continue domain building even if memshr extensions are not



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278579827 -3600
# Node ID 61d705d61f202f53161777c6c1bfb99f0670ae52
# Parent  0839af420ade49eb4e455066f9b13a3008e00434
xend: Continue domain building even if memshr extensions are not
present in the hypervisor.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21751:a7a680442b73
xen-unstable date:        Thu Jul 08 09:56:10 2010 +0100
---
 tools/python/xen/xend/image.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 0839af420ade -r 61d705d61f20 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Thu Jul 08 10:03:25 2010 +0100
+++ b/tools/python/xen/xend/image.py    Thu Jul 08 10:03:47 2010 +0100
@@ -830,8 +830,10 @@ class HVMImageHandler(ImageHandler):
         self.acpi = int(vmConfig['platform'].get('acpi', 0))
         self.guest_os_type = vmConfig['platform'].get('guest_os_type')
         self.memory_sharing = int(vmConfig['memory_sharing'])
-        xc.dom_set_memshr(self.vm.getDomid(), self.memory_sharing)
-
+        try:
+            xc.dom_set_memshr(self.vm.getDomid(), self.memory_sharing)
+        except:
+            pass
 
     # Return a list of cmd line args to the device models based on the
     # xm config file

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.