[Bug 256722] [PATCH] EFI boot: Fix boot freeze on some systems

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 May 2024 15:04:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256722

Vinícius Zavam <egypcio@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egypcio@FreeBSD.org

--- Comment #19 from Vinícius Zavam <egypcio@FreeBSD.org> ---
+1;

reproduced using the following installation medias (in a KVM guest):

  * FreeBSD-15.0-CURRENT-amd64-20240425-78101d437a92-269695-disc1.iso
  * FreeBSD-15.0-CURRENT-amd64-20240502-b07689d1f2a2-269827-disc1.iso
  * FreeBSD-15.0-CURRENT-amd64-20240509-ce7756fdca1f-270021-disc1.iso

a piece of the dumpxml output of that VM follows:

  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
    <loader readonly='yes'
type='pflash'>/usr/share/OVMF/OVMF_CODE_4M.fd</loader>
    <nvram>/var/lib/libvirt/qemu/nvram/freebsd_VARS.fd</nvram>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <vmport state='off'/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'/>

should that matters for someone, host's CPU is an Intel(R) Core(TM) i7-10510U
CPU @ 1.80GHz.

here's the console output of the VM trying to boot, after the installation:

Loading kernel...
Loading configured modules...
staging 0x61c00000 (not copying) tramp 0x7d460000 PT4 0x7d457000
Start @ 0xffffffff80384000 ...
!!!! X64 Exception Type - 0D(#GP - General Protection)  CPU Apic ID - 00000000
!!!!
ExceptionData - 0000000000000000
RIP  - 000000007D6C243B, CS  - 0000000000000038, RFLAGS - 0000000000010202
RAX  - 0000000000000002, RCX - 9090FF5BE9909000, RDX - 0000000000000002
RBX  - 000000007FF36A40, RSP - 000000007FF368F8, RBP - 000000007FF36A10
RSI  - 000000007D710808, RDI - 00000000FFFFFFEF
R8   - 00000000FFFFFFFB, R9  - 000000007D71080B, R10 - 000000000000FE00
R11  - FEFFFCFF2F636C2E, R12 - 00000000000003F8, R13 - 000000007FF36A48
R14  - 000000007FF36930, R15 - 0000000020010000
DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030
GS   - 0000000000000030, SS  - 0000000000000030
CR0  - 0000000080010033, CR2 - 0000000000000000, CR3 - 000000007FC01000
CR4  - 0000000000000668, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 000000007F9DD000 0000000000000047, LDTR - 0000000000000000
IDTR - 000000007F473018 0000000000000FFF,   TR - 0000000000000000
FXSAVE_STATE - 000000007FF36550
!!!! Find image based on IP(0x7D6C243B) (No PDB)  (ImageBase=000000007D67B000,
EntryPoint=000000007D6852D0) !!!!
---

the boot of the installer looks just fine (trying any of the .iso images):

Loading kernel...
/boot/kernel/kernel text=0x183de8 text=0xda8358 text=0x47a30c data=0x180+0xe80
data=0x199670+0x466990 0x8+0x19de80+0x8+0x1c84c2|
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy'
staging 0x74000000 (not copying) tramp 0x7e081000 PT4 0x7e077000
Start @ 0xffffffff80384000 ...
EFI framebuffer information:
addr, size     0xc4000000, 0x3e8000
dimensions     1280 x 800
stride         1280
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
---

-- 
You are receiving this mail because:
You are the assignee for the bug.