From: "Alex Bennée" <alex.bennee@linaro.org>
To: Chris Friesen <chris.friesen@windriver.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] strange situation, guest cpu thread spinning at ~100%, but display not yet initialized
Date: Fri, 02 Nov 2018 16:55:22 +0000 [thread overview]
Message-ID: <87lg6b5shx.fsf@linaro.org> (raw)
In-Reply-To: <b109fe05-1e88-a6e3-34cb-21a4b61e64b3@windriver.com>
Chris Friesen <chris.friesen@windriver.com> writes:
> On 11/2/2018 1:51 AM, Alex Bennée wrote:
>>
>> Chris Friesen <chris.friesen@windriver.com> writes:
>>
>>> Hi all,
>>>
>>> I have an odd situation which occurs very infrequently and I'm hoping
>>> to get some advice on how to debug. Apologies for the length of this
>>> message, I tried to include as much potentially useful information as
>>> possible.
>>>
>>> In the context of an OpenStack compute node I have a qemu guest (with
>>> kvm acceleration) that has started up. The virtual console shows
>>> "Guest has not initialized the display (yet)." I'm trying to figure
>>> out what's going on and how we got into this state. I assume it's
>>> some sort of deadlock/livelock, but I can't figure out what's causing
>>> it.
>
>>> At this point gdb appears to be stuck, though the task is still
>>> chewing 99.9% of host cpu 43.
>>
>> That's because the vcpu_ioctl you just trace through is into the
>> VCPU_RUN, basically when you enter the guest code (assuming the in
>> kernel KVM code isn't spinning).
>
> That's what I figured, thanks for the confirmation.
>
>> If you want to get an idea why your guest is spinning you probably want
>> to enable the gdb stub and look at what your guest kernel is doing.
>
> Given the "not initialized" message on the console, I wasn't sure
> whether the kernel had even started yet.
There will be a lot that happens between the kernel decompressing and
some sort of video hardware output being started. You didn't say what
guest architecture you were booting or what your qemu command line was.
You might want to look at enabling the serial console and seeing if you
get some clues from that.
--
Alex Bennée
next prev parent reply other threads:[~2018-11-02 16:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 21:23 [Qemu-devel] strange situation, guest cpu thread spinning at ~100%, but display not yet initialized Chris Friesen
2018-11-02 7:51 ` Alex Bennée
2018-11-02 15:31 ` Chris Friesen
2018-11-02 16:55 ` Alex Bennée [this message]
2018-11-02 17:08 ` Chris Friesen
2018-11-02 17:51 ` Dr. David Alan Gilbert
2018-11-02 20:45 ` Chris Friesen
2018-11-21 17:38 ` Chris Friesen
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=87lg6b5shx.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=chris.friesen@windriver.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).