From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcJjl-0003Gf-TK for qemu-devel@nongnu.org; Tue, 14 May 2013 14:14:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcJji-0008SS-RZ for qemu-devel@nongnu.org; Tue, 14 May 2013 14:14:09 -0400 Received: from smtp.citrix.com ([66.165.176.89]:56437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcJji-0008Nr-Lx for qemu-devel@nongnu.org; Tue, 14 May 2013 14:14:06 -0400 Message-ID: <51927EDC.6080201@citrix.com> Date: Tue, 14 May 2013 14:13:48 -0400 From: John Baboval MIME-Version: 1.0 References: <1367966349-13242-1-git-send-email-john.baboval@citrix.com> <518DBACE.5000904@redhat.com> In-Reply-To: <518DBACE.5000904@redhat.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4] Add 'maxqdepth' as an option to tty character devices. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: "John V. Baboval" , qemu-devel@nongnu.org On 05/10/2013 11:28 PM, Eric Blake wrote: > On 05/07/2013 04:39 PM, John Baboval wrote: >> From: "John V. Baboval" >> >> This parameter will cause writes to tty backed chardevs to return >> -EAGAIN if the backing tty has buffered more than the specified >> number of characters. When data is sent, the TIOCOUTQ ioctl is invoked >> to determine the current TTY output buffer depth. >> >> +++ b/qapi-schema.json >> @@ -3182,11 +3182,14 @@ >> # >> # @device: The name of the special file for the device, >> # i.e. /dev/ttyS0 on Unix or COM1: on Windows >> -# @type: What kind of device this is. >> +# >> +# @maxqdepth: #optional The maximum depth of the underlying tty >> +# output queue (Unix) (Since 1.6) >> # >> # Since: 1.4 >> ## >> -{ 'type': 'ChardevHostdev', 'data': { 'device' : 'str' } } >> +{ 'type': 'ChardevHostdev', 'data': { 'device' : 'str', >> + '*maxqdepth' : 'int' } } >> > Thanks; this interface change looks better (I'd still like to see > someone working on introspection, but it doesn't have to be you). I'll > still leave the implementation details to others more qualified for that > part of the review. In particular, since you are claiming this optional > attribute is Linux-only, that means we'd need introspection to know > whether a given qemu build supports the field (compiled on Linux) or not > (compiled on mingw), not just whether the qemu is new enough (1.6) or > older (1.4). > I believe (though I haven't tested on Windows) that the option at least does no harm there. You can still set it - It's just a no-op.