From: Paolo Bonzini <pbonzini@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: jan.kiszka@siemens.com, Dietmar Maurer <dietmar@proxmox.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qmp problems with --enable-kvm
Date: Thu, 22 Nov 2012 18:07:21 +0100 [thread overview]
Message-ID: <50AE5BC9.5080809@redhat.com> (raw)
In-Reply-To: <20121122145825.2da0c10f@doriath.home>
Il 22/11/2012 17:58, Luiz Capitulino ha scritto:
>>>> It seems like mon->mc->command_mode is set wrong, looking at
>>>> qmp_cmd_mode and its callers. Luiz may have more ideas.
>>>
>>> Checking. What I've just found is that qmp_capabilites will fail if the
>>> VM is stopped (!?).
>>
>> It's a regression somewhere. I doubt it's qmp, but could be.
>>
>> Here are the symptoms, Doc:
>>
>> 1. Start qemu and stop it right away. Connect to the QMP socket and you
>> won't get qmp's greeting
>>
>> 2. Start qemu, connect to the QMP socket and run the qmp_capabilities
>> command. Then stop qemu and disconnect from the qmp socket and connect
>> again: you'll see you're still in the previous session
>>
>> I do not get this with qemu 1.0.
>>
>> Dietmar got this because the suspend command automatically stops the VM
>> after migration...
>>
>> Bisecting...
>
> Didn't try to understand what's wrong with it, but bisect brings:
>
> commit ac4119c023c72b15f54238af43e4a178fcf41494
> Author: Jan Kiszka <jan.kiszka@siemens.com>
> Date: Fri Oct 12 09:52:49 2012 +0200
>
> chardev: Use timer instead of bottom-half to postpone open event
>
> As the block layer may decide to flush bottom-halfs while the machine is
> still initializing (e.g. to read geometry data from the disk), our
> postponed open event may be processed before the last frontend
> registered with a muxed chardev.
>
> Until the semantics of BHs have been clarified, use an expired timer to
> achieve the same effect (suggested by Paolo Bonzini). This requires to
> perform the alarm timer initialization earlier as otherwise timer
> subsystem can be used before being ready.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Ouch, in retrospect it actually makes sense since this patch uses a
vm_clock timer. Elementary, Watson... :)
I don't think there is a fix, short of reverting this commit.
Paolo
next prev parent reply other threads:[~2012-11-22 17:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 12:41 [Qemu-devel] qmp problems with --enable-kvm Dietmar Maurer
2012-11-22 13:20 ` Luiz Capitulino
2012-11-22 13:44 ` Dietmar Maurer
2012-11-22 15:07 ` Luiz Capitulino
2012-11-22 15:35 ` Paolo Bonzini
2012-11-22 15:53 ` Dietmar Maurer
2012-11-22 16:00 ` Paolo Bonzini
2012-11-22 16:04 ` Dietmar Maurer
2012-11-22 16:09 ` Paolo Bonzini
2012-11-22 16:24 ` Luiz Capitulino
2012-11-22 16:33 ` Luiz Capitulino
2012-11-22 16:58 ` Luiz Capitulino
2012-11-22 17:07 ` Paolo Bonzini [this message]
2012-11-22 17:09 ` Jan Kiszka
2012-11-22 17:24 ` Luiz Capitulino
2012-11-23 6:29 ` Dietmar Maurer
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=50AE5BC9.5080809@redhat.com \
--to=pbonzini@redhat.com \
--cc=dietmar@proxmox.com \
--cc=jan.kiszka@siemens.com \
--cc=lcapitulino@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 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).