Re: [PATCH] Update event idx if guest has made extra buffers during double check

2024-06-24 Thread Michael S. Tsirkin
On Mon, Jun 17, 2024 at 09:51:33PM +0800, Yang Dongshan wrote: > Similar to the first check, if the buffer size still can't satisfy the > request, > notify the > guest with the updated shadow_avail_idx, it's better than the old one. So it's an optimization then? Same as any optimization, it

Re: [PATCH] Update event idx if guest has made extra buffers during double check

2024-06-17 Thread Yang Dongshan
hi, subject should list the affected component, and be shorter. ok, I will rewrite the subject: "update the latest available idx seen by the host to event idx" Fixes: 06b12970174 ("virtio-net: fix network stall under load") this should come at the end. I have submitted v2, it's at the end

Re: [PATCH] Update event idx if guest has made extra buffers during double check

2024-06-17 Thread Michael S. Tsirkin
Thanks for the patch! Yet something to improve: subject should list the affected component, and be shorter. On Thu, Jun 13, 2024 at 10:21:47AM +0800, thomas wrote: > Fixes: 06b12970174 ("virtio-net: fix network stall under load") this should come at the end. and what exactly does this refer

Re: [PATCH] Update event idx if guest has made extra buffers during double check

2024-06-16 Thread Jason Wang
On Thu, Jun 13, 2024 at 10:22 AM thomas wrote: > > Fixes: 06b12970174 ("virtio-net: fix network stall under load") > > If guest has made some buffers available during double check, > but the total buffer size available is lower than @bufsize, > notify the guest with the latest available idx(event

[PATCH] Update event idx if guest has made extra buffers during double check

2024-06-12 Thread thomas
Fixes: 06b12970174 ("virtio-net: fix network stall under load") If guest has made some buffers available during double check, but the total buffer size available is lower than @bufsize, notify the guest with the latest available idx(event idx) seen by the host. --- hw/net/virtio-net.c | 1 + 1