Re: [PATCH v5 03/10] vhost: Do not depend on !NULL VirtQueueElement on vhost_svq_flush

2022-08-04 Thread Jason Wang
On Thu, Aug 4, 2022 at 2:21 PM Eugenio Perez Martin wrote: > > On Thu, Aug 4, 2022 at 5:14 AM Jason Wang wrote: > > > > > > 在 2022/8/3 01:57, Eugenio Pérez 写道: > > > Since QEMU will be able to inject new elements on CVQ to restore the > > > state, we need not to depend on a VirtQueueElement to

Re: [PATCH v5 03/10] vhost: Do not depend on !NULL VirtQueueElement on vhost_svq_flush

2022-08-04 Thread Eugenio Perez Martin
On Thu, Aug 4, 2022 at 5:14 AM Jason Wang wrote: > > > 在 2022/8/3 01:57, Eugenio Pérez 写道: > > Since QEMU will be able to inject new elements on CVQ to restore the > > state, we need not to depend on a VirtQueueElement to know if a new > > element has been used by the device or not. Instead of

Re: [PATCH v5 03/10] vhost: Do not depend on !NULL VirtQueueElement on vhost_svq_flush

2022-08-03 Thread Jason Wang
在 2022/8/3 01:57, Eugenio Pérez 写道: Since QEMU will be able to inject new elements on CVQ to restore the state, we need not to depend on a VirtQueueElement to know if a new element has been used by the device or not. Instead of check that, check if there are new elements only using used idx on

[PATCH v5 03/10] vhost: Do not depend on !NULL VirtQueueElement on vhost_svq_flush

2022-08-02 Thread Eugenio Pérez
Since QEMU will be able to inject new elements on CVQ to restore the state, we need not to depend on a VirtQueueElement to know if a new element has been used by the device or not. Instead of check that, check if there are new elements only using used idx on vhost_svq_flush. Signed-off-by: