qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Thiemo Seufer <ths@networkno.de>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] upgrading emulated UART to 16550A
Date: Tue, 05 Aug 2008 15:17:46 +0100	[thread overview]
Message-ID: <4898610A.7050007@eu.citrix.com> (raw)
In-Reply-To: <20080805135738.GC4102@networkno.de>

Thiemo Seufer wrote:

>> +/* Rate limit serial requests so that e.g. grub on a serial console
>> +   doesn't kill dom0.  Simple token bucket.  If we get some actual
>> +   data from the user, instantly refil the bucket. */
>> +
>> +/* How long it takes to generate a token, in nanoseconds. */
>> +#define TOKEN_PERIOD 1000000
>> +/* Maximum and initial size of token bucket */
>> +#define TOKENS_MAX 100000
> 
> This token business probably needs a bit more explanation, at a glance
> I didn't figure out what it is meant to do (and why the constants above
> are good).
> 

The token bucket was introduced to rate limit serial requests, mainly
for performance reasons (grub makes too many requests).
However I realize that conceptually it doesn't belong to qemu, so I am
going to send another patch soon without the token bucket.

  reply	other threads:[~2008-08-05 14:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 13:15 [Qemu-devel] [PATCH] upgrading emulated UART to 16550A Stefano Stabellini
2008-08-05 13:57 ` Thiemo Seufer
2008-08-05 14:17   ` Stefano Stabellini [this message]
2008-08-05 15:02 ` Jason Wessel
2008-08-05 15:15   ` Stefano Stabellini
2008-08-06  2:28 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2008-08-07 17:35 Stefano Stabellini
2008-08-07 18:58 ` Anthony Liguori
2008-08-07 21:02   ` Samuel Thibault
2008-08-07 21:13     ` Anthony Liguori
2008-08-07 21:39       ` Samuel Thibault
2008-08-08 14:36   ` Stefano Stabellini
2008-08-07 19:26 ` Jason Wessel
2008-08-08 14:55 Stefano Stabellini
2008-08-08 15:15 ` Stefano Stabellini
2008-08-08 16:58 Stefano Stabellini
2008-08-09 18:26 ` Anthony Liguori
2008-08-09 18:44   ` Samuel Thibault
2008-08-11 14:17 ` Anthony Liguori

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=4898610A.7050007@eu.citrix.com \
    --to=stefano.stabellini@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ths@networkno.de \
    /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).