qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCHv2] Fix virtio-console failure on unconnected pty


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCHv2] Fix virtio-console failure on unconnected pty
Date: Mon, 2 Jan 2012 16:34:26 +0100

On 29.12.2011, at 16:14, Amit Shah wrote:

> On (Thu) 29 Dec 2011 [15:32:14], Christian Borntraeger wrote:
>>> port->throttled never becomes true for qemu.  
>> 
>> Huh? What did I miss below?
>> 
>>            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? :)


Alex




reply via email to

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