Re: [RFC v2 10/13] vhost: add vhost_kernel_set_vring_enable

2021-03-16 Thread Jason Wang
在 2021/3/16 下午6:43, Eugenio Perez Martin 写道: On Tue, Mar 16, 2021 at 8:30 AM Jason Wang wrote: 在 2021/3/16 上午3:48, Eugenio Pérez 写道: This method is already present in vhost-user. This commit adapts it to vhost-net, so SVQ can use. vhost_kernel_set_enable stops the device, so qemu can ask f

Re: [RFC v2 10/13] vhost: add vhost_kernel_set_vring_enable

2021-03-16 Thread Eugenio Perez Martin
On Tue, Mar 16, 2021 at 8:30 AM Jason Wang wrote: > > > 在 2021/3/16 上午3:48, Eugenio Pérez 写道: > > This method is already present in vhost-user. This commit adapts it to > > vhost-net, so SVQ can use. > > > > vhost_kernel_set_enable stops the device, so qemu can ask for its status > > (next availab

Re: [RFC v2 10/13] vhost: add vhost_kernel_set_vring_enable

2021-03-16 Thread Jason Wang
在 2021/3/16 上午3:48, Eugenio Pérez 写道: This method is already present in vhost-user. This commit adapts it to vhost-net, so SVQ can use. vhost_kernel_set_enable stops the device, so qemu can ask for its status (next available idx the device was going to consume). When SVQ starts it can resume c

[RFC v2 10/13] vhost: add vhost_kernel_set_vring_enable

2021-03-15 Thread Eugenio Pérez
This method is already present in vhost-user. This commit adapts it to vhost-net, so SVQ can use. vhost_kernel_set_enable stops the device, so qemu can ask for its status (next available idx the device was going to consume). When SVQ starts it can resume consuming the guest's driver ring, without