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

[Xen-changelog] [xen-unstable] xend: allow hvm domain to have multiple serial consoles



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238582689 -3600
# Node ID 2a6b32d1e7050ff6ca8f4b85c3d8f3f8a5fa2ef5
# Parent  380cfb464b3bd64533ad37ccb5daeb5822a8889f
xend: allow hvm domain to have multiple serial consoles

This patch allows hvm domain to have multiple serial ports
with serial =3D [ '...', '...'].
The old style, serial=3D'option string', is also accepted for
compatibility.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/image.py |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -r 380cfb464b3b -r 2a6b32d1e705 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Wed Apr 01 11:44:10 2009 +0100
+++ b/tools/python/xen/xend/image.py    Wed Apr 01 11:44:49 2009 +0100
@@ -781,6 +781,14 @@ class HVMImageHandler(ImageHandler):
                     if v: ret.append("-%s" % a)
                 except (ValueError, TypeError):
                     pass # if we can't convert it to a sane type, ignore it
+            elif a == 'serial':
+                if v:
+                    if type(v) == str:
+                        v = [v]
+                    for s in v:
+                        if s:
+                            ret.append("-serial")
+                            ret.append("%s" % s)
             else:
                 if v:
                     ret.append("-%s" % a)

_______________________________________________
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®.