Re: [dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister

2021-01-05 Thread Xia, Chenbo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Tuesday, January 5, 2021 9:42 PM > To: Xia, Chenbo ; dev@dpdk.org; tho...@monjalon.net; > david.march...@redhat.com > Cc: step...@networkplumber.org; Liang, Cunming ; Lu, > Xiuchun ; Li, Miao > Subject: RE: [PATCH v2 4/8] emu

Re: [dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister

2021-01-05 Thread Wu, Jingjing
> +static int iavf_emu_update_status(int vfio_dev_id) { > + struct iavf_emudev *dev; > + int ret; > + > + dev = find_iavf_with_dev_id(vfio_dev_id); > + if (!dev) > + return -1; > + > + ret = iavf_emu_setup_mem_table(dev); > + if (ret) { > + EMU_IAVF_L

Re: [dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister

2021-01-04 Thread Xia, Chenbo
Hi Jingjing, > -Original Message- > From: Wu, Jingjing > Sent: Monday, January 4, 2021 2:45 PM > To: Xia, Chenbo ; dev@dpdk.org; tho...@monjalon.net; > david.march...@redhat.com > Cc: step...@networkplumber.org; Liang, Cunming ; Lu, > Xiuchun ; Li, Miao > Subject: RE: [PATCH v2 4/8] emu/

Re: [dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister

2021-01-03 Thread Wu, Jingjing
> +static inline struct iavf_emu_sock_list * iavf_emu_find_sock_list(char > +*sock_addr) { > + struct iavf_emu_sock_list *list; > + struct iavf_emudev *dev; > + int list_exist; Initialize list_exist to 0? > + > + if (!sock_addr) > + return NULL; > + > + pthread_mute

[dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister

2020-12-18 Thread Chenbo Xia
This patch adds vfio-user APIs call in driver probe and remove. rte_vfio_user_register() and rte_vfio_user_unregister() are called to create/destroy a vfio-user device. Notify callbacks that libvfio_user defines are also implemented. Signed-off-by: Chenbo Xia Signed-off-by: Miao Li --- drivers/