Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2021 11:55:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259878] [hyper-v] Kernel hangs at boot after printing Hyper-V features
Message-ID:  <bug-259878-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259878

            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: bugs@FreeBSD.org
          Reporter: sneakywumpus@gmail.com

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, NUL=
L);

to

SYSINIT(hyperv_tc_init, SI_SUB_LOCK + 1, SI_ORDER_FIRST, hyperv_tc_init, NU=
LL);

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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259878-227>