[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1715296] Re: qemu: invalid serial port configuration

From: Thomas Huth
Subject: [Qemu-devel] [Bug 1715296] Re: qemu: invalid serial port configuration
Date: Wed, 15 Aug 2018 07:25:56 -0000

** 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.

  qemu: invalid serial port configuration

Status in QEMU:
  Fix Released

Bug description:
  The tty_serial_init() function sets the port c_oflags as follows:
  tty.c_oflag |= OPOST not clearing ONLCR, ONLRET and others.
  The result is that the postprocess output is enabled and host translates 0xa 
(LF) to 0xd 0xa (CR LF) which breaks the binary transmissions on serial port 
even if you set the port to raw mode (no matters if on host and/or guest).
  The issue has been reported 11 years ago on qemu-devel mailing list:
  There was also a FreeBSD patch including the fix:

  I think the correct port configuration is:
  tty.c_oflag &= ~OPOST;

  In such case the host will perform no output processing and will pass the 
data as is.
  And the guest will be able to configure input/output processing exactly as it 

To manage notifications about this bug go to:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]