HomeFreeBSD

Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read

Description

Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read

It is observed that netvsc's send rings could stall on the latest
Azure Boost platforms. This is due to vmbus_rxbr_read() routine
doesn't check if host is waiting for more room to put data, which
leads to host side sleeping forever on this vmbus channel. The
problem was only observed on the latest platform because the host
requests larger buffer ring room to be available, which causes
the issue to happen much more easily.

Fix this by adding check in the vmbus_rxbr_read call and signaling
the host in the callers if check returns positively.

Reported by: NetApp
Tested by: whu
Sponsored by: Microsoft

(cherry picked from commit 49fa9a64372b087cfd66459a20f4ffd25464b6a3)

Details

Provenance
whuAuthored on Oct 20 2023, 8:58 AM
Parents
rG6134250f777b: pfsync: Provide documentation regarding message version
Branches
Unknown
Tags
Unknown