* [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest
@ 2018-05-18 18:26 Patto
2018-05-18 18:52 ` [Qemu-devel] [Bug 1772086] " Peter Maydell
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Patto @ 2018-05-18 18:26 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
When sending data through serial from guest each time 0x0A byte is sent
0x0D is sent before it. For example, when sending {0x29, 0x0A} on the
other end I receive {0x29, 0x0D, 0x0A}.
** Affects: qemu
Importance: Undecided
Status: New
** Tags: com serial
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
New
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
@ 2018-05-18 18:52 ` Peter Maydell
2018-05-18 21:11 ` Patto
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2018-05-18 18:52 UTC (permalink / raw)
To: qemu-devel
Something somewhere in the stack is converting LF to CRLF. This could be
something inside your guest, or in QEMU, or in the host; to find out
where we need more detail.
Can you describe your setup, including:
* complete QEMU command line
* how you're sending data inside the guest
* how you're reading it on the host end
please?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
New
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
2018-05-18 18:52 ` [Qemu-devel] [Bug 1772086] " Peter Maydell
@ 2018-05-18 21:11 ` Patto
2018-05-18 21:27 ` Patto
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Patto @ 2018-05-18 21:11 UTC (permalink / raw)
To: qemu-devel
I am unable to provide complete QEMU command line as I'm using virt-manager to deal with configuration. I can say that two serial ports are linked with physical ones through the /dev/ttyS* files.
The guests I tested it with are Windows 98 and Windows XP. For the testing I connected one port to another. I could confirm through a kernel level serial monitor that I was indeed sending just \n but on the second port I received \r\n. I also received \r\n when the port was read by the host.
Host is Ubuntu Xenial.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
New
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
2018-05-18 18:52 ` [Qemu-devel] [Bug 1772086] " Peter Maydell
2018-05-18 21:11 ` Patto
@ 2018-05-18 21:27 ` Patto
2018-05-18 21:32 ` Patto
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Patto @ 2018-05-18 21:27 UTC (permalink / raw)
To: qemu-devel
After doing a bit of research I think line 142 in file chardev/char-
serial.c is problematic.
https://github.com/qemu/qemu/blob/master/chardev/char-serial.c#L142
It enables output processing, which is something unwanted here. With a
simple test program I found out that by default, besides OPOST, ONLCR
flag is set in c_oflag. I guess fix would be removing OPOST flag, which
would disable any output processing, or setting c_oflag to 0 just to be
sure.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
New
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
` (2 preceding siblings ...)
2018-05-18 21:27 ` Patto
@ 2018-05-18 21:32 ` Patto
2018-05-19 5:55 ` Thomas Huth
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Patto @ 2018-05-18 21:32 UTC (permalink / raw)
To: qemu-devel
Seems like the problems isn't really new and might be at least 6 years
old if not more. https://robert.penz.name/550/mapping-a-serial-device-
to-a-kvm-guest-may-lead-to-communication-problems/
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
New
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
` (3 preceding siblings ...)
2018-05-18 21:32 ` Patto
@ 2018-05-19 5:55 ` Thomas Huth
2018-06-04 12:32 ` Thomas Huth
2018-08-15 7:25 ` Thomas Huth
6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2018-05-19 5:55 UTC (permalink / raw)
To: qemu-devel
It's even older than 6 years, see:
https://lists.nongnu.org/archive/html/qemu-devel/2006-06/msg00196.html
and:
https://bugs.launchpad.net/qemu/+bug/1407813
https://bugs.launchpad.net/qemu/+bug/1715296
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
New
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
` (4 preceding siblings ...)
2018-05-19 5:55 ` Thomas Huth
@ 2018-06-04 12:32 ` Thomas Huth
2018-08-15 7:25 ` Thomas Huth
6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2018-06-04 12:32 UTC (permalink / raw)
To: qemu-devel
Patch has now been committed here:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=12fb0ac0575df83cec72ec
** Changed in: qemu
Status: New => Fix Committed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
Fix Committed
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1772086] Re: malformed serial data being sent from guest
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
` (5 preceding siblings ...)
2018-06-04 12:32 ` Thomas Huth
@ 2018-08-15 7:25 ` Thomas Huth
6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2018-08-15 7:25 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1772086
Title:
malformed serial data being sent from guest
Status in QEMU:
Fix Released
Bug description:
When sending data through serial from guest each time 0x0A byte is
sent 0x0D is sent before it. For example, when sending {0x29, 0x0A} on
the other end I receive {0x29, 0x0D, 0x0A}.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1772086/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-08-15 7:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18 18:26 [Qemu-devel] [Bug 1772086] [NEW] malformed serial data being sent from guest Patto
2018-05-18 18:52 ` [Qemu-devel] [Bug 1772086] " Peter Maydell
2018-05-18 21:11 ` Patto
2018-05-18 21:27 ` Patto
2018-05-18 21:32 ` Patto
2018-05-19 5:55 ` Thomas Huth
2018-06-04 12:32 ` Thomas Huth
2018-08-15 7:25 ` Thomas Huth
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.