https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259878
Bug ID: 259878
Summary: [hyper-v] Kernel hangs at boot after printing Hyper-V
features
Product: Base System
Version: 13.0-STABLE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
After commit a2ca269b3810 ("hyperv: Register hyperv_timecounter later during
boot") my Gen2 Hyper-V VM with 6 CPUs (on Windows 11 Pro 22000.318) hangs at
boot after printing the Hyper-V features but before printing the CPU-ID
features and consumes 100% single core CPU.
After looking at the commit comments and code I changed
SYSINIT(hyperv_tc_init, SI_SUB_DRIVERS, SI_ORDER_FIRST, hyperv_tc_init, NULL);
to
SYSINIT(hyperv_tc_init, SI_SUB_LOCK + 1, SI_ORDER_FIRST, hyperv_tc_init, NULL);
in sys/dev/hyperv/vmbus/hyperv.c .
I'm really no kernel programmer so I don't know if this is the right thing to
do, but this change fixed the problem for me.
--
You are receiving this mail because:
You are the assignee for the bug.