Isaku Yamahata
2009-Apr-01 01:50 UTC
[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@valinux.co.jp> 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@lists.xensource.com http://lists.xensource.com/xen-devel