All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: [Xen-users] two serial port in HVM DomU patch]
@ 2007-12-31 12:13 Stephan Seitz
  2007-12-31 12:32 ` James Harper
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stephan Seitz @ 2007-12-31 12:13 UTC (permalink / raw)
  To: XEN Devel - listmembers


[-- Attachment #1.1.1: Type: text/plain, Size: 499 bytes --]

Hi,

attached is a patch posted at xen-users from Mishell Baranov for qemu-dm to support two serial lines.

I think this is a feature that could be implemented in the unstable and testing branches.

Regards,


-- 
Stephan Seitz
Senior System Administrator

*netz-haut* e.K.
multimediale kommunikation

zweierweg 22
97074 würzburg

fon: +49 931 2876247
fax: +49 931 2876248

web: www.netz-haut.de <http://www.netz-haut.de/>

registriergericht: amtsgericht würzburg, hra 5054

[-- Attachment #1.1.2: [Xen-users] two serial port in HVM DomU patch.eml --]
[-- Type: message/rfc822, Size: 8077 bytes --]

[-- Attachment #1.1.2.1.1: Type: text/plain, Size: 153 bytes --]

hi
Litle hack to allow 2 serial port's in HVM.
in config set seriala=/dev/ttyS0 serialb=/dev/ttyS1
it's work for me.
some body else was intresting that.

[-- Attachment #1.1.2.1.2: serial.patch --]
[-- Type: text/x-diff, Size: 4062 bytes --]

diff -ur xen-3.1-3.1.0/tools/ioemu/vl.c xen-3.1-3.1.0-my/tools/ioemu/vl.c
--- xen-3.1-3.1.0/tools/ioemu/vl.c	2007-05-18 20:45:21.000000000 +0600
+++ xen-3.1-3.1.0-my/tools/ioemu/vl.c	2007-12-30 14:45:13.000000000 +0500
@@ -5515,7 +5515,8 @@
     QEMU_OPTION_std_vga,
     QEMU_OPTION_monitor,
     QEMU_OPTION_domainname,
-    QEMU_OPTION_serial,
+    QEMU_OPTION_seriala,
+    QEMU_OPTION_serialb,
     QEMU_OPTION_parallel,
     QEMU_OPTION_loadvm,
     QEMU_OPTION_full_screen,
@@ -5603,7 +5604,8 @@
     { "std-vga", 0, QEMU_OPTION_std_vga },
     { "monitor", 1, QEMU_OPTION_monitor },
     { "domain-name", 1, QEMU_OPTION_domainname },
-    { "serial", 1, QEMU_OPTION_serial },
+    { "seriala", 1, QEMU_OPTION_seriala },
+    { "serialb", 1, QEMU_OPTION_serialb },
     { "parallel", 1, QEMU_OPTION_parallel },
     { "loadvm", HAS_ARG, QEMU_OPTION_loadvm },
     { "full-screen", 0, QEMU_OPTION_full_screen },
@@ -6465,7 +6467,8 @@
             case QEMU_OPTION_monitor:
                 pstrcpy(monitor_device, sizeof(monitor_device), optarg);
                 break;
-            case QEMU_OPTION_serial:
+            case QEMU_OPTION_seriala:
+            case QEMU_OPTION_serialb:
                 if (serial_device_index >= MAX_SERIAL_PORTS) {
                     fprintf(stderr, "qemu: too many serial ports\n");
                     exit(1);
diff -ur xen-3.1-3.1.0/tools/python/xen/xend/image.py xen-3.1-3.1.0-my/tools/python/xen/xend/image.py
--- xen-3.1-3.1.0/tools/python/xen/xend/image.py	2007-05-18 20:45:21.000000000 +0600
+++ xen-3.1-3.1.0-my/tools/python/xen/xend/image.py	2007-12-30 19:24:14.000000000 +0500
@@ -299,7 +299,7 @@
     # xm config file
     def parseDeviceModelArgs(self, vmConfig):
         dmargs = [ 'boot', 'fda', 'fdb', 'soundhw',
-                   'localtime', 'serial', 'stdvga', 'isa',
+                   'localtime', 'seriala', 'serialb', 'stdvga', 'isa',
                    'acpi', 'usb', 'usbdevice', 'keymap' ]
         
         ret = ['-vcpus', str(self.vm.getVCpuCount())]
diff -ur xen-3.1-3.1.0/tools/python/xen/xend/XendConfig.py xen-3.1-3.1.0-my/tools/python/xen/xend/XendConfig.py
--- xen-3.1-3.1.0/tools/python/xen/xend/XendConfig.py	2007-05-18 20:45:21.000000000 +0600
+++ xen-3.1-3.1.0-my/tools/python/xen/xend/XendConfig.py	2007-12-30 19:25:04.000000000 +0500
@@ -119,7 +119,7 @@
 # Platform configuration keys.
 XENAPI_PLATFORM_CFG = [ 'acpi', 'apic', 'boot', 'device_model', 'display', 
                         'fda', 'fdb', 'keymap', 'isa', 'localtime', 'monitor', 
-                        'nographic', 'pae', 'rtc_timeoffset', 'serial', 'sdl',
+                        'nographic', 'pae', 'rtc_timeoffset', 'seriala', 'serialb', 'sdl',
                         'soundhw','stdvga', 'usb', 'usbdevice', 'vnc',
                         'vncconsole', 'vncdisplay', 'vnclisten',
                         'vncpasswd', 'vncunused', 'xauthority']
diff -ur xen-3.1-3.1.0/tools/python/xen/xm/create.py xen-3.1-3.1.0-my/tools/python/xen/xm/create.py
--- xen-3.1-3.1.0/tools/python/xen/xm/create.py	2007-05-18 20:45:21.000000000 +0600
+++ xen-3.1-3.1.0-my/tools/python/xen/xm/create.py	2007-12-30 19:25:57.000000000 +0500
@@ -417,7 +417,11 @@
           fn=set_value, default='',
           use="Path to fdb")
 
-gopts.var('serial', val='FILE',
+gopts.var('seriala', val='FILE',
+          fn=set_value, default='',
+          use="Path to serial or pty or vc")
+
+gopts.var('serialb', val='FILE',
           fn=set_value, default='',
           use="Path to serial or pty or vc")
 
@@ -723,7 +727,7 @@
     """Create the config for HVM devices.
     """
     args = [ 'device_model', 'pae', 'vcpus', 'boot', 'fda', 'fdb',
-             'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'soundhw',
+             'localtime', 'seriala', 'serialb', 'stdvga', 'isa', 'nographic', 'soundhw',
              'vnc', 'vncdisplay', 'vncunused', 'vncconsole', 'vnclisten',
              'sdl', 'display', 'xauthority', 'rtc_timeoffset', 'monitor',
              'acpi', 'apic', 'usb', 'usbdevice', 'keymap' ]

[-- Attachment #1.1.2.1.3: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

[-- Attachment #1.1.3: s_seitz.vcf --]
[-- Type: text/x-vcard, Size: 335 bytes --]

begin:vcard
fn:Stephan Seitz
n:Seitz;Stephan
org:netz-haut e.K.
adr:;;Zweierweg 22;Wuerzburg;Bayern;97074;Deutschland
email;internet:s.seitz@netz-haut.de
title:Senior System Administrator
tel;work:+49-931-287-6247
tel;fax:+49-931-287-6248
x-mozilla-html:FALSE
url:http://www.schwarz-mode.de/files/
version:2.1
end:vcard


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-06 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-31 12:13 [Fwd: [Xen-users] two serial port in HVM DomU patch] Stephan Seitz
2007-12-31 12:32 ` James Harper
2007-12-31 12:41 ` Samuel Thibault
2008-01-06 22:46   ` Keir Fraser
2008-01-06 22:45     ` Daniel P. Berrange
2008-01-06 22:43 ` Keir Fraser
2008-01-06 22:42   ` Daniel P. Berrange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.