public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Bruce Cran <bruce@cran.org.uk>
Cc: edk2-devel@ml01.01.org
Subject: Re: OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828
Date: Tue, 18 Oct 2016 09:43:39 +0200	[thread overview]
Message-ID: <b982028f-e49a-5c9f-4f62-9615578e783d@redhat.com> (raw)
In-Reply-To: <025d38a8-b5d9-c519-3f03-59ffcbe114bf@cran.org.uk>

On 10/18/16 02:06, Bruce Cran wrote:
> I've just built both OVMF _and_ Qemu from the latest git sources, so I
> don't know which is at fault - but I'm seeing a hang in:
> 
> #0  0x000000007f9dc030 in SetInterruptState (InterruptState=104 'h')
>     at /home/bcran/workspace/edk2/MdePkg/Library/BaseLib/Cpu.c:60
> 
> It's at line 60 when it calls EnableInterrupts().
> 
> The entire backtrace is:
> 
> #0  0x000000007f9dc030 in SetInterruptState (InterruptState=104 'h')
>     at /home/bcran/workspace/edk2/MdePkg/Library/BaseLib/Cpu.c:60
> #1  0x000000007f9d6c57 in UpdateIdtTable (IdtTable=0xd,
> TemplateMap=0x7fadd478, ExceptionHandlerData=0x7f9e2460)
>     at
> /home/bcran/workspace/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c:146
> 
> #2  0x000000007f9d5ff0 in InitializeCpuInterruptHandlers (VectorInfo=0xd)
>     at
> /home/bcran/workspace/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c:111
> 
> #3  0x000000007f9d65fd in HasErrorCode ()
> #4  0x000000000000000d in ?? ()
> #5  0x000000007fadd478 in ?? ()
> #6  0x000000007fa7b748 in ?? ()
> #7  0x0000000000000012 in ?? ()
> #8  0x000000007fadd4a0 in ?? ()
> #9  0x0000000000000000 in ?? ()
> 
> 
> I _have_ tried going back to older revisions of qemu so I'm wondering if
> this could be a problem introduced by OVMF?
> 

Introduced when? :)

It's been a while since we committed anything to OvmfPkg that could
cause this. Similarly, I don't recall anything risky like this going
into UefiCpuPkg. I rebuild OVMF every few days, against current master,
and I'm not seeing this. (Just retested at aaba2a44c24e.)

So, we'll need more data here:
- Did you update KVM too perhaps?

- What is the last edk2 tree that works for you? (If you don't remember,
then looking at

  git reflog --date=local master | less

in your edk2 clone can help -- it will tell you the dates at which you
pulled master, and at what new commits)

- What are the KVM, qemu, edk2 versions that reproduce the bug?

- How did you build OVMF?

- What is your QEMU command line? (And how did you build QEMU?)

- Do you see anything in the OVMF log or on the serial console of the
VM? In particular, the fact that you are inside CpuExceptionHandlerLib
(according to your backtrace), implies that there was a page fault (or
other kind of exception). CpuExceptionHandlerLib dumps the registers and
the offending module to the serial console; so if you are lucky, you
might get that dump before CpuExceptionHandlerLib itself gets stuck (for
whatever reason).

Thanks!
Laszlo


  reply	other threads:[~2016-10-18  7:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18  0:06 OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828 Bruce Cran
2016-10-18  7:43 ` Laszlo Ersek [this message]
2016-11-01 16:02   ` Bruce Cran
2016-11-02  9:44     ` Laszlo Ersek

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-list 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=b982028f-e49a-5c9f-4f62-9615578e783d@redhat.com \
    --to=devel@edk2.groups.io \
    /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