Re: [PATCH 2/3] vhost: add vhost_dev_reset()

2022-04-01 Thread Si-Wei Liu
On 4/1/2022 4:06 AM, Michael Qiu wrote: Not all vhost-user backends support ops->vhost_reset_device(). Instead of adding backend check and call backend ops directly, it's better to implement a function in vhost framework, so that it could hide vhost_ops details. SIgned-off-by: Michael Qiu --

[PATCH 2/3] vhost: add vhost_dev_reset()

2022-04-01 Thread Michael Qiu
Not all vhost-user backends support ops->vhost_reset_device(). Instead of adding backend check and call backend ops directly, it's better to implement a function in vhost framework, so that it could hide vhost_ops details. SIgned-off-by: Michael Qiu --- hw/virtio/vhost.c | 14 +++