Re: [dpdk-dev] [PATCH 1/7] vhost: fix virtqueues metadata allocation

2020-10-22 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, October 21, 2020 8:07 PM > To: Xia, Chenbo ; dev@dpdk.org; amore...@redhat.com > Cc: sta...@dpdk.org > Subject: Re: [PATCH 1/7] vhost: fix virtqueues metadata allocation > > Hi Chenbon > > On 10/21/20 1:10 PM, Xia, Chenbo wr

Re: [dpdk-dev] [PATCH 1/7] vhost: fix virtqueues metadata allocation

2020-10-21 Thread Maxime Coquelin
Hi Chenbon On 10/21/20 1:10 PM, Xia, Chenbo wrote: > Hi Maxime, > >> -Original Message- >> From: Maxime Coquelin >> Sent: Tuesday, October 20, 2020 1:34 AM >> To: dev@dpdk.org; Xia, Chenbo ; amore...@redhat.com >> Cc: Maxime Coquelin ; sta...@dpdk.org >> Subject: [PATCH 1/7] vhost: fix v

Re: [dpdk-dev] [PATCH 1/7] vhost: fix virtqueues metadata allocation

2020-10-21 Thread Xia, Chenbo
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Tuesday, October 20, 2020 1:34 AM > To: dev@dpdk.org; Xia, Chenbo ; amore...@redhat.com > Cc: Maxime Coquelin ; sta...@dpdk.org > Subject: [PATCH 1/7] vhost: fix virtqueues metadata allocation > > The Vhost-user backend impl

[dpdk-dev] [PATCH 1/7] vhost: fix virtqueues metadata allocation

2020-10-19 Thread Maxime Coquelin
The Vhost-user backend implementation assumes there will be no holes in the device's array of virtqueues metadata pointers. It can happen though, and would cause segmentation faults, memory leaks or undefined behaviour. This patch keep the assumption that there is no holes in this array, and allo