* [Qemu-devel] [PULL 0/1] chardev patch queue
@ 2014-09-05 12:01 Gerd Hoffmann
2014-09-05 12:01 ` [Qemu-devel] [PULL 1/1] pty: Fix byte loss bug when connecting to pty Gerd Hoffmann
2014-09-05 15:03 ` [Qemu-devel] [PULL 0/1] chardev patch queue Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2014-09-05 12:01 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hi,
Pretty short with a single, simple patch. Should be pulled now so we
can cherry-pick into 2.1.1 stable, so I'm not waiting for a few more
chardev patches piling up ;)
please pull,
Gerd
The following changes since commit fd884c07658d02a96a882b8457d6d7a5cd71a407:
Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging (2014-09-04 19:41:15 +0100)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-chardev-20140905-1
for you to fetch changes up to cf7330c759345de2efe9c0df7921189ac5ff11d3:
pty: Fix byte loss bug when connecting to pty (2014-09-05 13:27:10 +0200)
----------------------------------------------------------------
pty: Fix byte loss bug when connecting to pty
----------------------------------------------------------------
Sebastian Tanase (1):
pty: Fix byte loss bug when connecting to pty
qemu-char.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] pty: Fix byte loss bug when connecting to pty
2014-09-05 12:01 [Qemu-devel] [PULL 0/1] chardev patch queue Gerd Hoffmann
@ 2014-09-05 12:01 ` Gerd Hoffmann
2014-09-05 15:03 ` [Qemu-devel] [PULL 0/1] chardev patch queue Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2014-09-05 12:01 UTC (permalink / raw)
To: qemu-devel; +Cc: Sebastian Tanase, Gerd Hoffmann, Anthony Liguori
From: Sebastian Tanase <sebastian.tanase@openwide.fr>
When trying to print data to the pty, we first check if it is connected.
If not, we try to reconnect, but we drop the pending data even if we
have successfully reconnected; this makes us lose the first byte of the very
first transmission.
This small fix addresses the issue by checking once more if the pty is connected
after having tried to reconnect.
Signed-off-by: Sebastian Tanase <sebastian.tanase@openwide.fr>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
qemu-char.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/qemu-char.c b/qemu-char.c
index d4f327a..1a8d9aa 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -1160,7 +1160,9 @@ static int pty_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
if (!s->connected) {
/* guest sends data, check for (re-)connect */
pty_chr_update_read_handler_locked(chr);
- return 0;
+ if (!s->connected) {
+ return 0;
+ }
}
return io_channel_send(s->fd, buf, len);
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] chardev patch queue
2014-09-05 12:01 [Qemu-devel] [PULL 0/1] chardev patch queue Gerd Hoffmann
2014-09-05 12:01 ` [Qemu-devel] [PULL 1/1] pty: Fix byte loss bug when connecting to pty Gerd Hoffmann
@ 2014-09-05 15:03 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2014-09-05 15:03 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: QEMU Developers
On 5 September 2014 13:01, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Hi,
>
> Pretty short with a single, simple patch. Should be pulled now so we
> can cherry-pick into 2.1.1 stable, so I'm not waiting for a few more
> chardev patches piling up ;)
>
> please pull,
> Gerd
>
> The following changes since commit fd884c07658d02a96a882b8457d6d7a5cd71a407:
>
> Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging (2014-09-04 19:41:15 +0100)
>
> are available in the git repository at:
>
>
> git://git.kraxel.org/qemu tags/pull-chardev-20140905-1
>
> for you to fetch changes up to cf7330c759345de2efe9c0df7921189ac5ff11d3:
>
> pty: Fix byte loss bug when connecting to pty (2014-09-05 13:27:10 +0200)
>
> ----------------------------------------------------------------
> pty: Fix byte loss bug when connecting to pty
>
> ----------------------------------------------------------------
> Sebastian Tanase (1):
> pty: Fix byte loss bug when connecting to pty
>
> qemu-char.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-05 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 12:01 [Qemu-devel] [PULL 0/1] chardev patch queue Gerd Hoffmann
2014-09-05 12:01 ` [Qemu-devel] [PULL 1/1] pty: Fix byte loss bug when connecting to pty Gerd Hoffmann
2014-09-05 15:03 ` [Qemu-devel] [PULL 0/1] chardev patch queue Peter Maydell
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).