All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] apparently missing yet another notify_event()
Date: Fri, 14 Sep 2012 18:47:43 +0400	[thread overview]
Message-ID: <5053438F.9000601@msgid.tls.msk.ru> (raw)
In-Reply-To: <50533C73.2080901@msgid.tls.msk.ru>

On 14.09.2012 18:17, Michael Tokarev wrote:
> On 04.09.2012 10:58, Michael Tokarev wrote:
>> On 04.09.2012 10:53, Paolo Bonzini wrote:
>>> Il 03/09/2012 20:13, Michael Tokarev ha scritto:
>> []
>>>>  qemu -nographic -kernel /boot/vmlinuz-$(uname -r) -append console=ttyS0 -serial pty
>>>>
>>>> This will hang with 100% CPU usage until something is sent
>>>> to the pty.  <Enter> key is enough.
>> []
>>> Could it be this one?
>>>
>>> <http://permalink.gmane.org/gmane.comp.emulators.qemu/168209>
>>
>> Removing this "pending" initialization fixes this problem too.
> 
> Actually it is not the same thing, and applying this path
> does not solve the originak issue for me, neither does
> updating to 1.2.0 help.
> 
> But it looks like I wasn't correct with the initial diagnostic.
> Qemu (either 1.1 or 1.2) just sleeps for a few moments (about
> 2 seconds) after startup with my command line option, and I
> thought it is stalled.
> 
> The actual problem appears to be qemu-kvm-specific, it does not
> affect qemu (with or without -enable-kvm).
> 
>  qemu-kvm -nographic -kernel /boot/vmlinuz-$(uname -r) -append console=ttyS0 -serial pty
> 
> This hangs till I send a char to the pty.

And it is even _more_ twisted than that.

It depends on the timing.  If I connect to the pty "too soon",
it will not stall.

But if I wait for ~2 seconds or more before connecting, both
qemu and qemu-kvm (and so current qemu/master too) will hang,
requiring a keypress on the pty for the guest to start booting.

Hwell.

/mjt

  reply	other threads:[~2012-09-14 14:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-03 18:13 [Qemu-devel] apparently missing yet another notify_event() Michael Tokarev
2012-09-04  6:53 ` Paolo Bonzini
2012-09-04  6:58   ` Michael Tokarev
2012-09-14 14:17     ` Michael Tokarev
2012-09-14 14:47       ` Michael Tokarev [this message]
2012-09-14 14:49         ` Michael Tokarev
2012-09-14 15:47         ` Michael Tokarev

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=5053438F.9000601@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=aliguori@us.ibm.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.