Page MenuHomeFreeBSD

hyperv: vmbus: refactor msg handler by replacing swi with task queue
ClosedPublic

Authored by honzhan_microsoft.com on Jan 27 2016, 7:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 3, 11:49 AM
Unknown Object (File)
Tue, Apr 22, 8:11 AM
Unknown Object (File)
Tue, Apr 22, 7:58 AM
Unknown Object (File)
Tue, Apr 22, 7:52 AM
Unknown Object (File)
Tue, Apr 22, 7:07 AM
Unknown Object (File)
Tue, Apr 22, 7:04 AM
Unknown Object (File)
Tue, Apr 22, 6:39 AM
Unknown Object (File)
Mar 15 2025, 6:07 AM

Details

Summary

swi launches ithread to handle msg from host, which is not efficient
enough. Processing the message directly in task queue during software
interrupt is preferred.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

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

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv: vmbus: refactor msg handler by replacing swi with task queue.
honzhan_microsoft.com updated this object.
sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
539

no need create dedicate task queue. you can use taskqueue_fast directly.

There is another succinct implementation with taskqueue_fast. Please reference https://reviews.freebsd.org/D5215

adrian edited edge metadata.
This revision is now accepted and ready to land.Feb 17 2016, 7:12 PM

a different version with same idea is already committed.