From: Anthony Liguori <aliguori@us.ibm.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Marek Vasut <marek.vasut@gmail.com>,
qemu-devel <qemu-devel@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] Kick io-thread on qemu_chr_accept_input
Date: Fri, 16 Mar 2012 08:16:39 -0500 [thread overview]
Message-ID: <4F633D37.60806@us.ibm.com> (raw)
In-Reply-To: <4F633153.9030004@siemens.com>
On 03/16/2012 07:25 AM, Jan Kiszka wrote:
> Once a chr frontend is able to receive input again, we need to inform
> the io-thread about this fact. Otherwise, main_loop_wait may continue to
> select without the related backend file descriptor in its set. This can
> cause high input latencies if only low-rate events arrive otherwise.
>
> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
I'm not nacking this patch, but please note that this is a band-aid as not all
char devices actually use qemu_chr_accept_input().
Regards,
Anthony Liguori
> ---
>
> /me wonders if a similar issue explains the slirp slowness under KVM
> with in-kernel irqchip enabled. Need to check...
>
> qemu-char.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/qemu-char.c b/qemu-char.c
> index 9a5be75..a589a84 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -177,6 +177,7 @@ void qemu_chr_accept_input(CharDriverState *s)
> {
> if (s->chr_accept_input)
> s->chr_accept_input(s);
> + qemu_notify_event();
> }
>
> void qemu_chr_fe_printf(CharDriverState *s, const char *fmt, ...)
next prev parent reply other threads:[~2012-03-16 13:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 12:25 [Qemu-devel] [PATCH] Kick io-thread on qemu_chr_accept_input Jan Kiszka
2012-03-16 13:16 ` Anthony Liguori [this message]
2012-03-16 13:18 ` Jan Kiszka
2012-03-29 12:19 ` Jan Kiszka
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=4F633D37.60806@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=jan.kiszka@siemens.com \
--cc=marek.vasut@gmail.com \
--cc=pbonzini@redhat.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.