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)
Sun, Apr 12, 3:04 PM
Unknown Object (File)
Tue, Apr 7, 2:59 AM
Unknown Object (File)
Mon, Apr 6, 1:03 AM
Unknown Object (File)
Sun, Apr 5, 6:54 AM
Unknown Object (File)
Fri, Apr 3, 12:19 AM
Unknown Object (File)
Wed, Apr 1, 8:04 PM
Unknown Object (File)
Sun, Mar 29, 12:30 PM
Unknown Object (File)
Sun, Mar 29, 4: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.