HomeFreeBSD

hyperv: Register hyperv_timecounter later during boot

Description

hyperv: Register hyperv_timecounter later during boot

Previously the MSR-based timecounter was registered during
SI_SUB_HYPERVISOR, i.e., very early during boot, and before SI_SUB_LOCK.
After commit 621fd9dcb2d8 this triggers a panic since the timecounter
list lock is not yet initialized.

The hyperv timecounter does not need to be registered so early, so defer
that to SI_SUB_DRIVERS, at the same time the hyperv TSC timecounter is
registered.

Reported by: whu
Approved by: whu
Fixes: 621fd9dcb2d8 ("timecounter: Lock the timecounter list")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 9ef7df022a467776aa616b92fe5783e4261e84c6)

Details

Provenance
markjAuthored on Oct 25 2021, 5:08 PM
Parents
rG9910716d014a: nfscl: Handle NFSv4.1/4.2 Close RPC NFSERR_DELAY replies better
Branches
Unknown
Tags
Unknown