]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uio_hv_generic: Set event for all channels on the device
authorLong Li <longli@microsoft.com>
Mon, 10 Mar 2025 22:12:01 +0000 (15:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Apr 2025 08:56:11 +0000 (10:56 +0200)
commitd062463edf1770427dc2d637df4088df4835aa47
tree2c4622bc49b5522039234fabe8d0e69ee8934f24
parentdd09eb0e2cc4ba91cd64dba2b733d3f8e1248fd8
uio_hv_generic: Set event for all channels on the device

Hyper-V may offer a non latency sensitive device with subchannels without
monitor bit enabled. The decision is entirely on the Hyper-V host not
configurable within guest.

When a device has subchannels, also signal events for the subchannel
if its monitor bit is disabled.

This patch also removes the memory barrier when monitor bit is enabled
as it is not necessary. The memory barrier is only needed between
setting up interrupt mask and calling vmbus_set_event() when monitor
bit is disabled.

Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/1741644721-20389-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c