mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
0a690b0314
commit
c6d5b4e310
1 file changed
+8
@@ -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)
|
||||
|
||||