* OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828
@ 2016-10-18 0:06 Bruce Cran
2016-10-18 7:43 ` Laszlo Ersek
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Cran @ 2016-10-18 0:06 UTC (permalink / raw)
To: edk2-devel
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?
--
Bruce
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828
2016-10-18 0:06 OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828 Bruce Cran
@ 2016-10-18 7:43 ` Laszlo Ersek
2016-11-01 16:02 ` Bruce Cran
0 siblings, 1 reply; 4+ messages in thread
From: Laszlo Ersek @ 2016-10-18 7:43 UTC (permalink / raw)
To: Bruce Cran; +Cc: edk2-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828
2016-10-18 7:43 ` Laszlo Ersek
@ 2016-11-01 16:02 ` Bruce Cran
2016-11-02 9:44 ` Laszlo Ersek
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Cran @ 2016-11-01 16:02 UTC (permalink / raw)
To: Laszlo Ersek; +Cc: edk2-devel
On 10/18/2016 1:43 AM, Laszlo Ersek wrote:
> 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().
> 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.)
Just to follow up, I've just got around to re-trying it after a couple
of weeks of new OpenSUSE Tumleweed kernels coming through, along with a
new build of qemu and OVMF - and the problem has disappeared.
--
Bruce
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828
2016-11-01 16:02 ` Bruce Cran
@ 2016-11-02 9:44 ` Laszlo Ersek
0 siblings, 0 replies; 4+ messages in thread
From: Laszlo Ersek @ 2016-11-02 9:44 UTC (permalink / raw)
To: Bruce Cran; +Cc: edk2-devel
On 11/01/16 17:02, Bruce Cran wrote:
> On 10/18/2016 1:43 AM, Laszlo Ersek wrote:
>> 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().
>> 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.)
>
> Just to follow up, I've just got around to re-trying it after a couple
> of weeks of new OpenSUSE Tumleweed kernels coming through, along with a
> new build of qemu and OVMF - and the problem has disappeared.
>
Thanks!
Laszlo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-02 9:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 0:06 OvmfPkg: hang in SetInterruptState with git 245cda6641ade1f1013c2d5c9c838f2706636828 Bruce Cran
2016-10-18 7:43 ` Laszlo Ersek
2016-11-01 16:02 ` Bruce Cran
2016-11-02 9:44 ` Laszlo Ersek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox