opnsense-src/sys/dev/hyperv/vmbus
Mark Johnston 9ef7df022a 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 621fd9dcb2 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:		621fd9dcb2 ("timecounter: Lock the timecounter list")
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2021-10-25 13:25:01 -04:00
..
amd64 pvclock: Add vDSO support 2021-08-14 15:57:54 +03:00
i386 Change "compiled" to "assembled" 2021-06-11 13:58:51 -06:00
hyperv.c hyperv: Register hyperv_timecounter later during boot 2021-10-25 13:25:01 -04:00
hyperv_busdma.c hyperv/busdma: Take BUS_DMA_ZERO into account 2016-05-24 05:26:52 +00:00
hyperv_machdep.h hyperv: Move machine dependent bits into machine dependent files. 2016-06-06 05:55:37 +00:00
hyperv_reg.h hyperv: Allow userland to ro-mmap reference TSC page 2016-12-15 03:32:24 +00:00
hyperv_var.h hyperv/timesync: Support "sent TC" to improve accuracy. 2016-12-08 05:37:39 +00:00
vmbus.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
vmbus_br.c Fix i386 build for r361275 2020-05-20 13:51:27 +00:00
vmbus_brvar.h HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
vmbus_chan.c HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
vmbus_chanvar.h HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
vmbus_et.c hyperv: Update copyright for the files changed in 2017 2017-08-14 06:00:50 +00:00
vmbus_if.m hyperv/vmbus: Add DEVMETHOD to map cpu to event taskq. 2016-11-30 07:45:05 +00:00
vmbus_reg.h HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
vmbus_res.c Distinguish _CID match and _HID match and make lower priority probe 2018-10-26 00:05:46 +00:00
vmbus_var.h hyperv/vmbus: Nuke unnecessary critical sections. 2016-12-28 03:07:58 +00:00
vmbus_xact.c hyperv/vmbus: Add result polling support for xact API. 2016-11-28 07:27:08 +00:00