[dpdk-dev] [PATCH 10/15] vfio: extract setup logic out of pci_vfio_map_resource

2016-05-10 Thread Jan Viktorin
On Tue, 10 May 2016 14:58:26 +0200 Jan Viktorin wrote: > On Tue, 10 May 2016 11:53:21 + > "Burakov, Anatoly" wrote: > > > Hi Jan, > > > > > > > /* > > > - * at this point, we know at least one port on this device is bound to > > > VFIO, > > > - * so we can proceed to try and set thi

[dpdk-dev] [PATCH 10/15] vfio: extract setup logic out of pci_vfio_map_resource

2016-05-10 Thread Jan Viktorin
On Tue, 10 May 2016 11:53:21 + "Burakov, Anatoly" wrote: > Hi Jan, > > > > /* > > -* at this point, we know at least one port on this device is bound to > > VFIO, > > -* so we can proceed to try and set this particular port up > > -*/ > > - > > - /* check if the group is v

[dpdk-dev] [PATCH 10/15] vfio: extract setup logic out of pci_vfio_map_resource

2016-05-10 Thread Burakov, Anatoly
Hi Jan, > /* > - * at this point, we know at least one port on this device is bound to > VFIO, > - * so we can proceed to try and set this particular port up > - */ > - > - /* check if the group is viable */ > - ret = ioctl(vfio_group_fd, VFIO_GROUP_GET_STATUS, > &gro

[dpdk-dev] [PATCH 10/15] vfio: extract setup logic out of pci_vfio_map_resource

2016-04-29 Thread Jan Viktorin
The setup logic access the global vfio_cfg variable that will be moved in the following commits. We need to separate all accesses to this variable to a general code. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 96 +++--- 1 file changed, 47