Re: Stable/13 doesn't boot with xen

From: Brian Buhrow <buhrow_at_nfbcal.org>
Date: Tue, 07 Jun 2022 06:18:09 UTC
	hello.  Following up on my recent post, here is the log of the failed shutdown from
 FreeBSD head.
This probably doesn't tell you everything, but hopefully it will give you  a clue.

-thanks
-Brian


Jun  6 10:25:34 xen-lothlorien shutdown[1582]: reboot by buhrow:
Stopping sshd.
Waiting for PIDS: 1292.
Stopping cron.
Waiting for PIDS: 1276.
Stopping devd.
Waiting for PIDS: 537.
Writing entropy file: .
Writing early boot entropy file: .
Terminated
.
Jun  6 10:25:34 xen-lothlorien syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop... done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining... 2 3 2 1 0 done
All buffers synced.
Uptime: 39m13s
GEOM_MIRROR^Oyk^[ce gptback: provider destroyed.
GEOM_MIRROR: Device gptswap: provider destroyed.
GEOM_MIRROR: Device gptswap destroyed.
GEOM_MIRROR: Device gptroot: provider destroyed.
GEOM_MIRROR: Device gptroot destroyed.
uhub4: detached
uhub0: detached
uhub2: detached
uhub3: detached
uhub1: detached


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x188
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff82cafe74
stack pointer    ^O^R   = 0x28:0xfffffe00d18a9bb0
yk^[y    nter           = 0x28:0xfffffe00d18a9bb0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 0 (xbbd0 taskq)
trap number             = 12
panic: page fault
cpuid = 0
time = 1654536343
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00d18a9970
vpanic() at vpanic+0x151/frame 0xfffffe00d18a99c0
panic() at panic+0x43/frame 0xfffffe00d18a9a20
trap_fatal() at trap_fatal+0x387/frame 0xfffffe00d18a9a80
trap_pfault() at trap_pfault+0xab/frame 0xfffffe00d18a9ae0
calltrap() at calltrap+0x8/frame 0xfffffe00d18a9ae0
--- trap 0xc, rip = 0xffffffff82cafe74, rsp = 0xfffffe00d18a9bb0, rbp = 0xfffffe00d18a9bb0 ---
dmu_objset_zil() at dmu_objset_zil+0x4/frame 0xfffffe00d18a9bb0
zil_open() at zil_open+0xf/frame 0xfffffe00d18a9bd0

l_ensure_zilog() at zvol_ensure_zilog+0xf1/frame 0xfffffe00d18a9bf0
zvol_geom_bio_strategy() at zvol_geom_bio_strategy+0x90/frame 0xfffffe00d18a9c70
xbb_dispatch_dev() at xbb_dispatch_dev+0x274/frame 0xfffffe00d18a9d20
xbb_run_queue() at xbb_run_queue+0xbf5/frame 0xfffffe00d18a9e40
taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe00d18a9ec0
taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe00d18a9ef0
fork_exit() at fork_exit+0x80/frame 0xfffffe00d18a9f30
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00d18a9f30
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
[ thread pid 0 tid 100355 ]
Stopped at      kdb_enter+0x32: movq    $0,0x12a22a3(%rip)
db> reboot
(XEN) d0v0 Unexpected vmexit: reason 3
(XEN) domain_crash called from vmx.c:4460
(XEN) Domain 0 (vcpu#0) crashed on cpu#1:
(XEN) ----[ Xen-4.16.0  x86_64  debug=n  Not tainted ]----
(XEN) CPU:
FLAGS: 0000000000000093   CONTEXT: hvm guest (d0v0)
(XEN) rax: 000000006e458498   rbx: fffffe00d35bc720   rcx: 000006d0ca72787c
(XEN) rdx: 00000000000006d0   rsi: 000006d06e44de28   rdi: 000000000007a120
(XEN) rbp: fffffe00d18a9550   rsp: fffffe00d18a9510   r8:  0000000000000000
(XEN) r9:  ffffffff81bd4c97   r10: ffffffff81bd4c97   r11: d9ff9c96919e8f00
(XEN) r12: 0000000000000004   r13: 0000000000000000   r14: 0000000000000001
(XEN) r15: ffffffff81a5b430   cr0: 000000008005003b   cr4: 00000000000606e0
(XEN) cr3: 000000000281e002   cr2: 0000000000000188
(XEN) fsb: 0000000822808080   gsb: ffffffff82a10000   gss: 0000000000000000
(XEN) ds: 003b   es: 003b   fs: 0013   gs: 001b   ss: 0028   cs: 0020
(XEN) Hardware Dom0 crashed: rebooting machine in 5 seconds.