From: Gary Lin <glin@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "Ni, Ruiyu" <ruiyu.ni@intel.com>,
Anthony PERARD <anthony.perard@citrix.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
Xen Devel <xen-devel@lists.xen.org>
Subject: Re: [edk2] OVMF broken under Xen (in PCI initialisation)
Date: Tue, 26 Apr 2016 18:03:12 +0800 [thread overview]
Message-ID: <20160426100312.GF3109__39576.3215296485$1461665100$gmane$org@GaryWorkstation> (raw)
In-Reply-To: <571F356A.0@citrix.com>
On Tue, Apr 26, 2016 at 10:31:22AM +0100, Andrew Cooper wrote:
>
> > I tried to make RootBridgeIoConfiguration() return EFI_UNSUPPORTED
> > (see the attachment), and those asserts were gone. However, the system
> > stuck somewhere after loading shell.efi. Here are the messages from the
> > debug log:
> >
> > BdsLibConnectAll
> > Select Item: 0xE
> > Memory Previous Current Next
> > Type Pages Pages Pages
> > ====== ======== ======== ========
> > 0A 00000004 00000001 00000004
> > 09 00000008 00000011 00000015
> > 00 00000004 00000001 00000004
> > 06 00000024 00000057 0000006C
> > 05 00000030 00000063 0000007B
> > 03 00000180 0000048D 000005B0
> > 04 00000F00 00000B65 00000F00
> > Booting EFI Internal Shell
> > InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 3EA580C0
> > Loading driver at 0x0003E03F000 EntryPoint=0x0003E03F240 Shell.efi
> > InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 3EA58B98
> > InstallProtocolInterface: 387477C2-69C7-11D2-8E39-00A0C969723B 3EA54320
> > InstallProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA 3EA53CD8
> > InstallProtocolInterface: 6302D008-7F9B-4F30-87AC-60C9FEF5DA4E 3E16B580
> >
> > I couldn't find out where it stuck unless there is a way to attach gdb
> > to Xen HVM for source level debugging :-(
>
> You can use gdbsx (from tools/debugger/gdbsx in the Xen tree) which acts
> like gdbserver. (It is very rough around the edges, but does function.)
>
Thanks for the hint!
Now I got the backtrace:
Program received signal SIGINT, Interrupt.
0x000000003f539cd2 in CpuSleep ()
(gdb) bt
#0 0x000000003f539cd2 in CpuSleep ()
#1 0x000000003f5359fc in IdleLoopEventCallback (Event=0x3eea8dd8, Context=0x0) at /home/linux/git/edk2/UefiCpuPkg/CpuDxe/CpuDxe.c:852
#2 0x000000003f66a9b2 in CoreDispatchEventNotifies (Priority=16) at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Event/Event.c:200
#3 0x000000003f66a007 in CoreRestoreTpl (NewTpl=4) at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Event/Tpl.c:131
#4 0x000000003f6581c3 in CoreReleaseLock (Lock=0x3f688d70) at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Library/Library.c:102
#5 0x000000003f66a78d in CoreReleaseEventLock () at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Event/Event.c:119
#6 0x000000003f66abf9 in CoreNotifySignalList (EventGroup=0x3f404ad0) at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Event/Event.c:276
#7 0x000000003f66b08d in CoreSignalEvent (UserEvent=0x3f404a98) at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Event/Event.c:564
#8 0x000000003f66b2c4 in CoreWaitForEvent (NumberOfEvents=1, UserEvents=0x3e3e2060, UserIndex=0x3f64c848)
at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Event/Event.c:705
#9 0x000000003e052317 in FileInterfaceStdInRead (This=0x3e16b700, BufferSize=0x3f64ca00, Buffer=0x3e8d3018)
at /home/linux/git/edk2/ShellPkg/Application/Shell/FileHandleWrappers.c:422
#10 0x000000003e062372 in FileHandleRead (FileHandle=0x3e16b700, BufferSize=0x3f64ca00, Buffer=0x3e8d3018)
at /home/linux/git/edk2/MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.c:179
#11 0x000000003e04374e in DoShellPrompt () at /home/linux/git/edk2/ShellPkg/Application/Shell/Shell.c:1278
#12 0x000000003e041d0e in UefiMain (ImageHandle=0x3ea58b18, SystemTable=0x3f5d9018) at /home/linux/git/edk2/ShellPkg/Application/Shell/Shell.c:634
#13 0x000000003e040492 in ProcessModuleEntryPointList (ImageHandle=0x3ea58b18, SystemTable=0x3f5d9018)
at /home/linux/git/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/Application/Shell/Shell/DEBUG/AutoGen.c:834
#14 0x000000003e03f2b1 in _ModuleEntryPoint (ImageHandle=0x3ea58b18, SystemTable=0x3f5d9018)
at /home/linux/git/edk2/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c:65
#15 0x000000003f653791 in CoreStartImage (ImageHandle=0x3ea58b18, ExitDataSize=0x3f64cd38, ExitData=0x3f64cd30)
at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/Image/Image.c:1661
#16 0x000000003f442fbc in BdsLibBootViaBootOption (Option=0x3ea63718, DevicePath=0x3ea58018, ExitDataSize=0x3f64cd38, ExitData=0x3f64cd30)
at /home/linux/git/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c:2436
#17 0x000000003f4130a3 in BdsBootDeviceSelect () at /home/linux/git/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c:286
#18 0x000000003f413c1a in BdsEntry (This=0x3f45fe00) at /home/linux/git/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c:659
#19 0x000000003f64e96a in DxeMain (HobStart=0x3f402018) at /home/linux/git/edk2/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c:518
#20 0x000000003f64d71d in ProcessModuleEntryPointList (HobStart=0x3b6ce000)
at /home/linux/git/edk2/Build/OvmfX64/DEBUG_GCC48/X64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/AutoGen.c:414
#21 0x000000003f64d26d in _ModuleEntryPoint (HobStart=0x3b6ce000) at /home/linux/git/edk2/MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.c:54
#22 0x0000000000000000 in ?? ()
(gdb)
The shell was waiting for the keystroke so it actually worked as
expected. However, the shell UI didn't show in either serial console
or the vncviewer.
Gary Lin
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-04-26 10:03 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160422144736.GD1885@perard.uk.xensource.com>
2016-04-25 11:43 ` [edk2] OVMF broken under Xen (in PCI initialisation) Laszlo Ersek
[not found] ` <571E02C5.1000906@redhat.com>
2016-04-26 6:29 ` Gary Lin
[not found] ` <20160426062914.GB3109@GaryWorkstation>
2016-04-26 6:45 ` Ni, Ruiyu
2016-04-26 6:43 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA25884@SHSMSX103.ccr.corp.intel.com>
2016-04-26 7:35 ` Gary Lin
[not found] ` <20160426073529.GC3109@GaryWorkstation>
2016-04-26 8:19 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA25B98@SHSMSX103.ccr.corp.intel.com>
2016-04-26 8:40 ` Gary Lin
[not found] ` <20160426084000.GD3109@GaryWorkstation>
2016-04-26 9:40 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA25D38@SHSMSX103.ccr.corp.intel.com>
2016-04-27 4:29 ` Gary Lin
[not found] ` <20160427042907.GH3109@GaryWorkstation>
2016-04-27 5:39 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA27D1E@SHSMSX103.ccr.corp.intel.com>
2016-04-27 6:54 ` Gary Lin
[not found] ` <20160427065428.GJ3109@GaryWorkstation>
2016-04-27 7:18 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA27F59@SHSMSX103.ccr.corp.intel.com>
2016-04-27 8:26 ` Gary Lin
[not found] ` <20160427082641.GK3109@GaryWorkstation>
2016-04-27 9:48 ` Ni, Ruiyu
2016-04-27 9:50 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA291E5@SHSMSX103.ccr.corp.intel.com>
2016-04-27 10:43 ` Laszlo Ersek
[not found] ` <572097E4.1070300@redhat.com>
2016-04-28 5:08 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA29FD5@SHSMSX103.ccr.corp.intel.com>
2016-04-28 9:12 ` Gary Lin
[not found] ` <20160428091209.GL3109@GaryWorkstation>
2016-04-28 9:44 ` Andrew Cooper
2016-04-28 10:35 ` Laszlo Ersek
[not found] ` <5721E77C.7080701@redhat.com>
2016-05-05 8:03 ` Ni, Ruiyu
[not found] ` <734D49CCEBEEF84792F5B80ED585239D0DA479DB@SHSMSX103.ccr.corp.intel.com>
2016-05-05 9:12 ` Wei Liu
2016-05-05 9:22 ` Gary Lin
2016-04-26 9:31 ` Andrew Cooper
2016-04-26 10:03 ` Gary Lin [this message]
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='20160426100312.GF3109__39576.3215296485$1461665100$gmane$org@GaryWorkstation' \
--to=glin@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=edk2-devel@lists.01.org \
--cc=ruiyu.ni@intel.com \
--cc=xen-devel@lists.xen.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).