Re: [PATCH net-next V2 2/2] virtio-net: sleep instead of busy waiting for cvq command

2023-05-16 Thread Jason Wang
On Wed, May 17, 2023 at 4:54 AM Michael S. Tsirkin wrote: > > On Thu, Apr 13, 2023 at 02:40:27PM +0800, Jason Wang wrote: > > We used to busy waiting on the cvq command this tends to be > > problematic since there no way for to schedule another process which > > may serve for the control virtqueue

Re: [PATCH net-next V2 2/2] virtio-net: sleep instead of busy waiting for cvq command

2023-05-16 Thread Michael S. Tsirkin
On Thu, Apr 13, 2023 at 02:40:27PM +0800, Jason Wang wrote: > We used to busy waiting on the cvq command this tends to be > problematic since there no way for to schedule another process which > may serve for the control virtqueue. This might be the case when the > control virtqueue is emulated by

Re: [PATCH net-next V2 2/2] virtio-net: sleep instead of busy waiting for cvq command

2023-04-13 Thread Jason Wang
Adding netdev. On Fri, Apr 14, 2023 at 1:09 PM Jason Wang wrote: > > On Thu, Apr 13, 2023 at 3:31 PM Xuan Zhuo wrote: > > > > On Thu, 13 Apr 2023 14:40:27 +0800, Jason Wang wrote: > > > We used to busy waiting on the cvq command this tends to be > > > problematic since there no way for to sched

Re: [PATCH net-next V2 2/2] virtio-net: sleep instead of busy waiting for cvq command

2023-04-13 Thread Jason Wang
On Thu, Apr 13, 2023 at 3:31 PM Xuan Zhuo wrote: > > On Thu, 13 Apr 2023 14:40:27 +0800, Jason Wang wrote: > > We used to busy waiting on the cvq command this tends to be > > problematic since there no way for to schedule another process which > > may serve for the control virtqueue. This might b

Re: [PATCH net-next V2 2/2] virtio-net: sleep instead of busy waiting for cvq command

2023-04-13 Thread Xuan Zhuo
On Thu, 13 Apr 2023 14:40:27 +0800, Jason Wang wrote: > We used to busy waiting on the cvq command this tends to be > problematic since there no way for to schedule another process which > may serve for the control virtqueue. This might be the case when the > control virtqueue is emulated by softw

[PATCH net-next V2 2/2] virtio-net: sleep instead of busy waiting for cvq command

2023-04-12 Thread Jason Wang
We used to busy waiting on the cvq command this tends to be problematic since there no way for to schedule another process which may serve for the control virtqueue. This might be the case when the control virtqueue is emulated by software. This patch switches to use completion to allow the CPU to