Re: [PATCH] vhost-user-gpio: Configure vhost_dev when connecting

2023-01-31 Thread Alex Bennée
Akihiko Odaki writes: > vhost_dev_cleanup(), called from vu_gpio_disconnect(), clears vhost_dev > so vhost-user-gpio must set the members of vhost_dev each time > connecting. > > do_vhost_user_cleanup() should also acquire the pointer to vqs directly > from VHostUserGPIO instead of referring to

Re: [PATCH] vhost-user-gpio: Configure vhost_dev when connecting

2023-01-30 Thread Viresh Kumar
On 30-01-23, 23:03, Akihiko Odaki wrote: > vhost_dev_cleanup(), called from vu_gpio_disconnect(), clears vhost_dev > so vhost-user-gpio must set the members of vhost_dev each time > connecting. > > do_vhost_user_cleanup() should also acquire the pointer to vqs directly > from VHostUserGPIO instead

[PATCH] vhost-user-gpio: Configure vhost_dev when connecting

2023-01-30 Thread Akihiko Odaki
vhost_dev_cleanup(), called from vu_gpio_disconnect(), clears vhost_dev so vhost-user-gpio must set the members of vhost_dev each time connecting. do_vhost_user_cleanup() should also acquire the pointer to vqs directly from VHostUserGPIO instead of referring to vhost_dev as it can be called after