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
MFC after: 3 days
Sponsored by: Microsoft

Details

Provenance
whuAuthored on Oct 20 2023, 8:58 AM
Parents
rGc1146e6ad67f: pf: use an enum for packet direction in divert tag
Branches
Unknown
Tags
Unknown