ia64/xen-unstable

changeset 19484:2a6b32d1e705

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@valinux.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 01 11:44:49 2009 +0100 (2009-04-01)
parents 380cfb464b3b
children 9c552123b130
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Wed Apr 01 11:44:10 2009 +0100
     1.2 +++ b/tools/python/xen/xend/image.py	Wed Apr 01 11:44:49 2009 +0100
     1.3 @@ -781,6 +781,14 @@ class HVMImageHandler(ImageHandler):
     1.4                      if v: ret.append("-%s" % a)
     1.5                  except (ValueError, TypeError):
     1.6                      pass # if we can't convert it to a sane type, ignore it
     1.7 +            elif a == 'serial':
     1.8 +                if v:
     1.9 +                    if type(v) == str:
    1.10 +                        v = [v]
    1.11 +                    for s in v:
    1.12 +                        if s:
    1.13 +                            ret.append("-serial")
    1.14 +                            ret.append("%s" % s)
    1.15              else:
    1.16                  if v:
    1.17                      ret.append("-%s" % a)