All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] KVM brokenness due to IO thread changes
Date: Tue, 28 Apr 2009 21:56:23 +0200	[thread overview]
Message-ID: <49F75F67.9040402@web.de> (raw)
In-Reply-To: <20090428125146.GB19142@amt.cnet>

[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]

Marcelo Tosatti wrote:
> Jan,
> 
> On Tue, Apr 28, 2009 at 09:40:01AM +0200, Jan Kiszka wrote:
>> Hi,
>>
>> this is a heads-up, maybe someone has some time to look into this over
>> the day: I seems like the IO thread changes caused a few regressions to
>> the KVM mode.
>>
>> When I keep this feature disabled, I see strange hick-ups of the event
>> delivery mechanism, and the guest stops once in a while for a second or
>> so. Attaching strace makes the whole process terminate early (looks like
>> it triggers a race in the signal handling). And when I enable the IO
>> thread, I immediately get a deadlock on qemu_global_mutex.
> 
> Yes its borked. The iothread should signal the vcpu thread whenever it
> wants to grab the mutex lock, because unlike kvm-userspace it does not
> drop the global mutex when entering guest mode (VCPU_RUN ioctl).
> 
> Anthony will commit patches to fix that soon.

Looking forward. It's far more efficient to test my infrastructure
changes against the KVM mode.

> 
>> Moreover:
>>   CC    i386-softmmu/vl.o
>> /data/qemu/vl.c:4380: warning: ‘qemu_calculate_timeout’ defined but not used
>>
>> Jan
> 
> BTW, can you please review the changes made to the debugging logic in
> the main loop sometime? (there's a debug_requested global now).
> 

Looks OK and works fine.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  reply	other threads:[~2009-04-28 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28  7:40 [Qemu-devel] KVM brokenness due to IO thread changes Jan Kiszka
2009-04-28 12:51 ` Marcelo Tosatti
2009-04-28 19:56   ` Jan Kiszka [this message]
2009-04-28 20:09     ` Anthony Liguori
2009-04-28 22:21       ` Marcelo Tosatti

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=49F75F67.9040402@web.de \
    --to=jan.kiszka@web.de \
    --cc=mtosatti@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.