Re: [PATCH RESEND] vhost: fix possible wrap in SVQ descriptor ring

2023-05-10 Thread Lei Yang
QE applied this patch to do sanity testing on vhost-vdpa, there is no any regression problem. Tested-by: Lei Yang On Wed, May 10, 2023 at 9:32 AM Lei Yang wrote: > QE applied this patch to do sanity testing on vhost-net, there is no > any regression problem. > > Tested-by: Lei Yang > > > >

Re: [PATCH RESEND] vhost: fix possible wrap in SVQ descriptor ring

2023-05-09 Thread Lei Yang
QE applied this patch to do sanity testing on vhost-net, there is no any regression problem. Tested-by: Lei Yang On Tue, May 9, 2023 at 1:28 AM Eugenio Perez Martin wrote: > > On Sat, May 6, 2023 at 5:01 PM Hawkins Jiawei wrote: > > > > QEMU invokes vhost_svq_add() when adding a guest's

Re: [PATCH RESEND] vhost: fix possible wrap in SVQ descriptor ring

2023-05-09 Thread Hawkins Jiawei
Hi Eugenio, Thanks for reviewing. On 2023/5/9 1:26, Eugenio Perez Martin wrote: > On Sat, May 6, 2023 at 5:01 PM Hawkins Jiawei wrote: >> >> QEMU invokes vhost_svq_add() when adding a guest's element into SVQ. >> In vhost_svq_add(), it uses vhost_svq_available_slots() to check >> whether QEMU

Re: [PATCH RESEND] vhost: fix possible wrap in SVQ descriptor ring

2023-05-08 Thread Eugenio Perez Martin
On Sat, May 6, 2023 at 5:01 PM Hawkins Jiawei wrote: > > QEMU invokes vhost_svq_add() when adding a guest's element into SVQ. > In vhost_svq_add(), it uses vhost_svq_available_slots() to check > whether QEMU can add the element into the SVQ. If there is > enough space, then QEMU combines some out

[PATCH RESEND] vhost: fix possible wrap in SVQ descriptor ring

2023-05-06 Thread Hawkins Jiawei
QEMU invokes vhost_svq_add() when adding a guest's element into SVQ. In vhost_svq_add(), it uses vhost_svq_available_slots() to check whether QEMU can add the element into the SVQ. If there is enough space, then QEMU combines some out descriptors and some in descriptors into one descriptor chain,