Page MenuHomeFreeBSD

hyperv/vmbus: make hyperv eventtimer as a module
AbandonedPublic

Authored by howard0su_gmail.com on Apr 2 2016, 2:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 2, 3:29 PM
Unknown Object (File)
Jul 22 2025, 11:44 AM
Unknown Object (File)
Jul 22 2025, 9:52 AM
Unknown Object (File)
Jul 22 2025, 6:46 AM
Unknown Object (File)
Jul 20 2025, 6:52 AM
Unknown Object (File)
Jul 4 2025, 7:29 AM
Unknown Object (File)
Jul 2 2025, 9:50 AM
Unknown Object (File)
Jun 26 2025, 12:33 PM

Details

Summary

Also simplify eventtimer to only support one-shot.

Test Plan

Run the following command to switch hyperv eventtimer:
sysctl kern.eventtimer.timer=HyperV

also run devinfo -v to make sure hv_et is there and under
vmbus

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3097
Build 3129: arc lint + arc unit

Event Timeline

howard0su_gmail.com retitled this revision from to hyperv/vmbus: make hyperv eventtimer as a module.
howard0su_gmail.com updated this object.
howard0su_gmail.com edited the test plan for this revision. (Show Details)
decui_microsoft.com added inline comments.
sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
292

Must we check this? It looks almost all the callers of device_get_ivars(child) don't have the check.
If it's a must, we should fix the other callers of device_get_ivars() too, e.g., vmbus_read_ivar(), vmbus_write_ivar().

573

what's the meaning of "delay attach until inerrupt is on" -- I don't see how bus_generic_attach() can delay things?

At this place, the vmbus doesn't have any child device yet?

sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
573

He tries to attach the hv_et here. Rest of the devices go through channel offers later.

sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
573

Got it. Thanks!