All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Baboval <john.baboval@citrix.com>
To: Eric Blake <eblake@redhat.com>
Cc: "John V. Baboval" <john.baboval@virtualcomputer.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4] Add 'maxqdepth' as an option to tty character devices.
Date: Tue, 14 May 2013 14:13:48 -0400	[thread overview]
Message-ID: <51927EDC.6080201@citrix.com> (raw)
In-Reply-To: <518DBACE.5000904@redhat.com>

On 05/10/2013 11:28 PM, Eric Blake wrote:
> On 05/07/2013 04:39 PM, John Baboval wrote:
>> From: "John V. Baboval" <john.baboval@virtualcomputer.com>
>>
>> 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.

      reply	other threads:[~2013-05-14 18:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07 22:39 [Qemu-devel] [PATCH v4] Add 'maxqdepth' as an option to tty character devices John Baboval
2013-05-11  3:28 ` Eric Blake
2013-05-14 18:13   ` John Baboval [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=51927EDC.6080201@citrix.com \
    --to=john.baboval@citrix.com \
    --cc=eblake@redhat.com \
    --cc=john.baboval@virtualcomputer.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.