At 2026-11-21 16:27:27, "Jiaming Fan" <[email protected]> wrote:
>Hi Longjun,
>
>I don't think this reasoning holds. You saw an RX stall, but that
>doesn't mean it was caused by a lost interrupt. Masking the interrupt
>injection only creates the same symptom, it doesn't reproduce what
>happened in production.

A lost interrupt is enough to stall the RX queue, and this can be seen 
from the code: the ring is only drained from the notification path,
vring_interrupt() -> skb_recv_done() -> virtqueue_napi_schedule() ->
virtnet_poll(). If that notification is lost, the used ring is not drained,
buffers are never returned, the device runs out of descriptors and stops
publishing, so no further notification comes. The queue stays stuck.

>
>Michael posted a patch for a similar RX stall recently:
>https://lore.kernel.org/netdev/ad74886a8429a862c00d1e42f1dc746f2924b75f.1795108341.git....@redhat.com/
>
>So did your guest have IRQ deferral enabled (napi_defer_hard_irqs and
>gro_flush_timeout)? If so, you may have hit the race Michael fixed. It
>stalls the queue the same way without losing any interrupt.

I looked at Michael's patch and my case does not match it: at the time 
of the stall the callbacks were enabled, and IRQ deferral was not enabled
(napi_defer_hard_irqs = 0, gro_flush_timeout = 0).

Reply via email to