Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] vfio: fix check for vfio_group_fd

2020-05-19 Thread David Marchand
On Tue, May 19, 2020 at 5:42 AM wangyunjian wrote: > > From: Yunjian Wang > > The issue is that a file descriptor at 0 is a valid one. Currently > the file not found, the return value will be set to 0. As a result, > it is impossible to distinguish between a correct descriptor and a > failed retu

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] vfio: fix check for vfio_group_fd

2020-05-21 Thread Burakov, Anatoly
On 19-May-20 8:43 AM, David Marchand wrote: On Tue, May 19, 2020 at 5:42 AM wangyunjian wrote: From: Yunjian Wang The issue is that a file descriptor at 0 is a valid one. Currently the file not found, the return value will be set to 0. As a result, it is impossible to distinguish between a c

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] vfio: fix check for vfio_group_fd

2020-05-22 Thread David Marchand
On Thu, May 21, 2020 at 2:54 PM Burakov, Anatoly wrote: > > On 19-May-20 8:43 AM, David Marchand wrote: > > On Tue, May 19, 2020 at 5:42 AM wangyunjian wrote: > >> > >> From: Yunjian Wang > >> > >> The issue is that a file descriptor at 0 is a valid one. Currently > >> the file not found, the re

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] vfio: fix check for vfio_group_fd

2020-05-27 Thread Kevin Traynor
On 21/05/2020 13:53, Burakov, Anatoly wrote: > On 19-May-20 8:43 AM, David Marchand wrote: >> On Tue, May 19, 2020 at 5:42 AM wangyunjian wrote: >>> >>> From: Yunjian Wang >>> >>> The issue is that a file descriptor at 0 is a valid one. Currently >>> the file not found, the return value will be s

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] vfio: fix check for vfio_group_fd

2020-07-29 Thread wangyunjian
Ping for review Thanks, Yunjian > -Original Message- > From: Kevin Traynor [mailto:ktray...@redhat.com] > Sent: Wednesday, May 27, 2020 6:45 PM > To: Burakov, Anatoly ; David Marchand > ; wangyunjian ; > Luca Boccassi > Cc: dev ; Hemant Agrawal ; > Sachin Saxena ; Lilijun (Jerry) > ; xud