From: Amit Shah <amit.shah@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCHv2] Fix virtio-console failure on unconnected pty
Date: Tue, 3 Jan 2012 21:19:31 +0530 [thread overview]
Message-ID: <20120103154931.GB4536@amit.redhat.com> (raw)
In-Reply-To: <1DE12B28-6524-43A1-896D-5F17137BEA5C@suse.de>
On (Mon) 02 Jan 2012 [17:55:06], Alexander Graf wrote:
>
> On 02.01.2012, at 16:41, Christian Borntraeger wrote:
>
> > On 02/01/12 16:34, Alexander Graf wrote:
> >>>> if (ret == -EAGAIN || (ret >= 0 && ret < buf_size)) {
> >>>> virtio_serial_throttle_port(port, true);
> >>>
> >>> Ah; I see what's happening. pty_chr_write() returns 0 if a client
> >>> isn't yet connected.
> >>>
> >>> This is different from the buggy tcp_chr_write() code, which just
> >>> returns 'len', i.e. a successful write. And since I've only tested
> >>> with tcp/unix sockets, I couldn't see why throttling could get
> >>> enabled.
> >>
> >> So what's the conclusion then? :)
> >
> > My conclusion is that with my patch virtio-console on a pty works, without
> > it doesnt. :-)
> > I think Amit said that he is going to apply the patch.
>
> Ah, alright then :)
Yep, patches go through some tests first before sending out the pull
request.
Amit
prev parent reply other threads:[~2012-01-03 15:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 12:44 [Qemu-devel] [RFC] virtio-console fails on unconnected pty Christian Borntraeger
2011-12-16 9:23 ` Amit Shah
2011-12-29 12:47 ` [Qemu-devel] [PATCHv2] Fix virtio-console failure " Christian Borntraeger
2011-12-29 13:27 ` Amit Shah
2011-12-29 13:39 ` Andreas Färber
2011-12-29 14:04 ` Amit Shah
2011-12-29 14:16 ` Christian Borntraeger
2011-12-29 14:19 ` Christian Borntraeger
2011-12-29 14:26 ` Amit Shah
2011-12-29 14:32 ` Christian Borntraeger
2011-12-29 14:56 ` Amit Shah
2011-12-29 15:14 ` Christian Borntraeger
2011-12-29 15:14 ` Amit Shah
2012-01-02 15:34 ` Alexander Graf
2012-01-02 15:41 ` Christian Borntraeger
2012-01-02 16:55 ` Alexander Graf
2012-01-03 15:49 ` Amit Shah [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120103154931.GB4536@amit.redhat.com \
--to=amit.shah@redhat.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).