From: Anthony Liguori <anthony@codemonkey.ws>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Jan Kiszka <jan.kiszka@siemens.com>,
qemu-devel@nongnu.org, Blue Swirl <blauwirbel@gmail.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread
Date: Mon, 22 Aug 2011 09:09:33 -0500 [thread overview]
Message-ID: <4E52631D.8060609@codemonkey.ws> (raw)
In-Reply-To: <CAFEAcA9xcWBXJxi+K9OkdqGXogBhxSO6TgFekV7fzkv-wtoXJA@mail.gmail.com>
On 08/22/2011 08:50 AM, Peter Maydell wrote:
> On 22 August 2011 14:24, Anthony Liguori<aliguori@us.ibm.com> wrote:
>> Enabling the I/O thread by default seems like an important part of declaring
>> 1.0. Besides allowing true SMP support with KVM, the I/O thread means that the
>> TCG VCPU doesn't have to multiplex itself with the I/O dispatch routines which
>> currently requires a (racey) signal based alarm system.
>
> Even with iothread it's still signal based (and still racy) -- the only way
> to get a thread currently executing TCG code to stop doing so is to send it
> a signal.
What I meant is that we use SIGALRM to effectively do preemptive
multiple tasking between the VCPU thread and the I/O thread.
We still need to use signals with the I/O thread because we run the two
in lock step. The race I was referring to with SIGALRM has to do with a
guest disabling timer interrupts and any other event source. It'll
cause a live lock in TCG.
The only way to fix this is by moving to the I/O thread or setting SIGIO
on every fd. Since every fd doesn't support SIGIO, I/O thread is really
the only correct solution.
Regards,
Anthony Liguori
>
> -- PMM
>
prev parent reply other threads:[~2011-08-22 14:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 13:24 [Qemu-devel] [PATCH] main: force enabling of I/O thread Anthony Liguori
2011-08-22 13:35 ` Jan Kiszka
2011-08-22 13:43 ` Anthony Liguori
2011-08-29 18:03 ` Anthony Liguori
2011-08-29 20:21 ` Andreas Färber
2011-08-29 20:24 ` Anthony Liguori
2011-08-29 21:23 ` Andreas Färber
2011-08-29 21:25 ` Anthony Liguori
2011-08-29 22:42 ` Jan Kiszka
2011-08-30 18:45 ` Andreas Färber
2011-08-30 19:28 ` Anthony Liguori
2011-09-01 18:31 ` Andreas Färber
2011-09-02 13:59 ` Mark Cave-Ayland
2011-09-02 14:31 ` Anthony Liguori
2011-09-02 14:42 ` Paolo Bonzini
2011-09-02 15:41 ` Anthony Liguori
2011-08-22 13:50 ` Peter Maydell
2011-08-22 14:00 ` Paolo Bonzini
2011-08-22 14:08 ` Jan Kiszka
2011-08-22 14:18 ` Peter Maydell
2011-08-22 14:09 ` Anthony Liguori [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=4E52631D.8060609@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=aliguori@us.ibm.com \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=jan.kiszka@siemens.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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 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).