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)
Feb 22 2024, 2:25 PM
Unknown Object (File)
Dec 20 2023, 12:52 AM
Unknown Object (File)
Dec 5 2023, 6:09 PM
Unknown Object (File)
Dec 4 2023, 7:56 AM
Unknown Object (File)
Nov 22 2023, 8:20 AM
Unknown Object (File)
Nov 13 2023, 12:22 PM
Unknown Object (File)
Nov 11 2023, 4:24 PM
Unknown Object (File)
Nov 11 2023, 5:15 AM

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!