|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] allow hvm domain to have multiple serial ports
allow hvm domain to have multiple serial consoles
This patch allows hvm domain to have multiple serial ports
with serial = [ '...', '...'].
The old style, serial='option string', is also accepted for compatibility.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py
+++ b/tools/python/xen/xend/image.py
@@ -778,6 +778,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)
--
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] allow hvm domain to have multiple serial ports,
Isaku Yamahata <=
|
|
|
|
|