qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] serial: fixes for migration
@ 2014-12-11 18:18 Paolo Bonzini
  2014-12-11 18:18 ` [Qemu-devel] [PATCH 1/3] serial: clean up THRE/TEMT handling Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paolo Bonzini @ 2014-12-11 18:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, andrey, dgilbert, batuzovk

While adding migration support for thr_ipending, I and Pavel chose
the default value of thr_ipending (absent the subsection) according
to what should be the common behavior of the serial device and its
drivers.

However, the condition did not actually match the common state of the
serial device because of emulation inaccuracies.  Thus the subsection
is almost always transmitted, which breaks migration from 2.2 to 2.1.

Patch 3 fixes these inaccuracies, but unmasks a missed interrupt bug
that upsets Windows.  In order to keep bisectability, that missed
interrupt is first fixed in patch 2.  And to close the circle, patch 1
cleans up more code that didn't match the datasheet too well (and was
also unnecessarily complicated); that was the first, unfruitful attempt
to fix the bug.

Datasheet available at http://www.ti.com/lit/ds/symlink/pc16550d.pdf

Paolo Bonzini (3):
  serial: fix THRE/TEMT handling
  serial: update LSR on enabling/disabling FIFOs
  serial: do not trigger THR interrupt after writing to IER

 hw/char/serial.c | 34 ++++++++++++++++------------------
 1 file changed, 16 insertions(+), 18 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2014-12-11 18:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 18:18 [Qemu-devel] [PATCH 0/3] serial: fixes for migration Paolo Bonzini
2014-12-11 18:18 ` [Qemu-devel] [PATCH 1/3] serial: clean up THRE/TEMT handling Paolo Bonzini
2014-12-11 18:18 ` [Qemu-devel] [PATCH 2/3] serial: update LSR on enabling/disabling FIFOs Paolo Bonzini
2014-12-11 18:18 ` [Qemu-devel] [PATCH 3/3] serial: do not trigger THR interrupt after writing to IER Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).