[Bug 1205978] New: Got Page-Fault exception when VM is booting with edk2-stable202211 ovmf
https://bugzilla.suse.com/show_bug.cgi?id=1205978 Bug ID: 1205978 Summary: Got Page-Fault exception when VM is booting with edk2-stable202211 ovmf Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: KVM Assignee: kvm-bugs@suse.de Reporter: jlee@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Got Page-Fault exception when VM is booting with edk2-stable202211 ovmf : linux-691t:~ # virsh start opensuseTW; virsh console opensuseTW Domain 'opensuseTW' started Connected to domain 'opensuseTW' Escape character is ^] (Ctrl + ]) !!!! X64 Exception Type - 0E(#PF - Page-Fault) CPU Apic ID - 00000000 !!!! ExceptionData - 000000000000000B I:0 R:1 U:0 W:1 P:1 PK:0 SS:0 SGX:0 RIP - 000000007F2D44FB, CS - 0000000000000038, RFLAGS - 0000000000010246 RAX - 0000000000000000, RCX - 0000000000000001, RDX - 0000000000000000 RBX - 0000038280000014, RSP - 000000007FF05750, RBP - 000000007FF05948 RSI - 0000000000000000, RDI - 0000000000000000 R8 - 000000007FF05948, R9 - 0000000000000001, R10 - 0000000000000001 R11 - 0000000000000000, R12 - 0000000000000001, R13 - 000000007FF05948 R14 - 000000007F2D52FC, R15 - 0000000000000001 DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030 GS - 0000000000000030, SS - 0000000000000030 CR0 - 0000000080010033, CR2 - 0000038280000014, CR3 - 000000007FC01000 CR4 - 0000000000000668, CR8 - 0000000000000000 DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 000000007F9DC000 0000000000000047, LDTR - 0000000000000000 IDTR - 000000007F2DE018 0000000000000FFF, TR - 0000000000000000 FXSAVE_STATE - 000000007FF053B0 !!!! Find image based on IP(0x7F2D44FB) /mnt/working/source_code-git/edk2/Build/OvmfX64/DEBUG_GCC5/X64/UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe/DEBUG/CpuIo2Dxe.dll (ImageBase=000000007F2D3000, EntryPoint=000000007F2D4CFD) !!!! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c1 --- Comment #1 from Joey Lee <jlee@suse.com> --- After bisecting, found the issue patch: commit ecb778d0ac62560aa172786ba19521f27bc3f650 (HEAD) Author: Gerd Hoffmann <kraxel@redhat.com> Date: Tue Oct 4 15:47:27 2022 +0200 OvmfPkg/PlatformInitLib: dynamic mmio window size In case we have a reliable PhysMemAddressWidth use that to dynamically size the 64bit address window. Allocate 1/8 of the physical address space and place the window at the upper end of the address space. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> I will revert this patch from edk2-stable202211 ovmf in openSUSE:Factory first. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c2 --- Comment #2 from Joey Lee <jlee@suse.com> --- (In reply to Joey Lee from comment #1)
After bisecting, found the issue patch:
commit ecb778d0ac62560aa172786ba19521f27bc3f650 (HEAD) Author: Gerd Hoffmann <kraxel@redhat.com> Date: Tue Oct 4 15:47:27 2022 +0200
OvmfPkg/PlatformInitLib: dynamic mmio window size
In case we have a reliable PhysMemAddressWidth use that to dynamically size the 64bit address window. Allocate 1/8 of the physical address space and place the window at the upper end of the address space.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
I will revert this patch from edk2-stable202211 ovmf in openSUSE:Factory first.
Revert the patch in openSUSE:Factory first: https://build.opensuse.org/request/show/1039619 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 Joey Lee <jlee@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kvm-bugs@suse.de |jlee@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c3 --- Comment #3 from Joey Lee <jlee@suse.com> --- edk2-stable202302 has a patch may relates to this issue: commit c0a0b9bc3534b71ad90c022b0cab10910697de69 [edk2-stable202302~138] Author: Gerd Hoffmann <kraxel@redhat.com> Date: Tue Jan 17 13:16:28 2023 +0100 OvmfPkg/PlatformInitLib: Add PlatformReservationConflictCB Bug 4251 - OVMF IA32X64 boot failure on TCG, due to MMIO address space conflict https://bugzilla.tianocore.org/show_bug.cgi?id=4251 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c4 --- Comment #4 from Joey Lee <jlee@suse.com> --- Created bug on edk2 upstream bugzilla: Bug 4373 - Got Page-Fault in CpuIo2Dxe.dll when using edk2-stable202211 ovmf with qemi-kvm https://bugzilla.tianocore.org/show_bug.cgi?id=4373 I also sent mail to devel@edk2.groups.io for checking with Gerd Hoffmann. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 Joey Lee <jlee@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.suse.com/s | |how_bug.cgi?id=1209266 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c5 --- Comment #5 from Joey Lee <jlee@suse.com> --- (In reply to Joey Lee from comment #4)
Created bug on edk2 upstream bugzilla:
Bug 4373 - Got Page-Fault in CpuIo2Dxe.dll when using edk2-stable202211 ovmf with qemi-kvm https://bugzilla.tianocore.org/show_bug.cgi?id=4373
I also sent mail to devel@edk2.groups.io for checking with Gerd Hoffmann.
After debugging with Gerd on edk2 bugzilla, we found the the CPU phys-bits be set to 42 bit even my CPU on host is 39 bits physcial: Host: Address sizes: 39 bits physical, 48 bits virtual Guest ovmf log: PlatformAddressWidthFromCpuid: Signature: 'GenuineIntel', PhysBits: 42, QemuQuirk: On, Valid: Yes It causes ovmf crash. Then I found that we have the following patch in qemu in Virtualization/qemu on OBS: increase-x86_64-physical-bits-to-42.patch From: Bruce Rogers <brogers@suse.com> Date: Fri, 17 May 2013 16:49:58 -0600 Subject: increase x86_64 physical bits to 42 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 Joey Lee <jlee@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brogers@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 Joey Lee <jlee@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |claudio.fontana@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c6 Joey Lee <jlee@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(brogers@suse.com) --- Comment #6 from Joey Lee <jlee@suse.com> --- Hi Bruce, As the comment#5, could you please check increase-x86_64-physical-bits-to-42.patch? Do you have any idea to prevent change the default x86_64 physical bits? Thanks a lot! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1205978 https://bugzilla.suse.com/show_bug.cgi?id=1205978#c7 Claudio Fontana <claudio.fontana@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfaggioli@suse.com Flags|needinfo?(brogers@suse.com) |needinfo?(dfaggioli@suse.co | |m) --- Comment #7 from Claudio Fontana <claudio.fontana@suse.com> --- (In reply to Joey Lee from comment #6)
Hi Bruce,
As the comment#5, could you please check increase-x86_64-physical-bits-to-42.patch? Do you have any idea to prevent change the default x86_64 physical bits?
Thanks a lot!
Hi Joey, I think we moved past the use of this patch to extend the physical bits, we can now use the host physical bits detection to set the right value automatically IIRC. Setting the needinfo to Dario. Ciao, C -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com