Reviewed-by: Raphael Norwitz <[email protected]> On Thu, Oct 16, 2025 at 7:46 AM Vladimir Sementsov-Ogievskiy <[email protected]> wrote: > > Call vhost_dev_connect() directly, to simplify further refactoring. > > Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> > --- > hw/block/vhost-user-blk.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/hw/block/vhost-user-blk.c b/hw/block/vhost-user-blk.c > index 57214a69cd..f2ecf81e4d 100644 > --- a/hw/block/vhost-user-blk.c > +++ b/hw/block/vhost-user-blk.c > @@ -363,7 +363,12 @@ static int vhost_user_blk_connect(DeviceState *dev, > Error **errp) > > s->vhost_user.supports_config = true; > ret = vhost_dev_init(&s->dev, &s->vhost_user, VHOST_BACKEND_TYPE_USER, 0, > - true, errp); > + false, errp); > + if (ret < 0) { > + return ret; > + } > + > + ret = vhost_dev_connect(&s->dev, errp); > if (ret < 0) { > return ret; > } > -- > 2.48.1 > >
- Re: [PATCH v2 04/25] vhost: add connect ... Raphael Norwitz
- [PATCH v2 01/25] vhost: store busyloop_timeou... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v2 01/25] vhost: store busylo... Raphael Norwitz
- [PATCH v2 07/25] vhost-user-blk: vhost_user_b... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v2 07/25] vhost-user-blk: vho... Raphael Norwitz
- [PATCH v2 14/25] virtio: introduce .skip_vhos... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v2 14/25] virtio: introduce .... Raphael Norwitz
- [PATCH v2 03/25] vhost: rework vhost_virtqueu... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v2 03/25] vhost: rework vhost... Raphael Norwitz
- Re: [PATCH v2 05/25] vhost: split vhost_dev_c... Raphael Norwitz
- Re: [PATCH v2 08/25] vhost-user-blk: vhost_us... Raphael Norwitz
- Re: [PATCH v2 10/25] vhost-user-blk: split vh... Raphael Norwitz
- Re: [PATCH v2 12/25] vhost-user-blk: move fir... Raphael Norwitz
- Re: [PATCH v2 12/25] vhost-user-blk: mov... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v2 12/25] vhost-user-blk:... Raphael Norwitz
- Re: [PATCH v2 12/25] vhost-user-... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v2 13/25] vhost-user-blk: postpone... Raphael Norwitz
- Re: [PATCH v2 19/25] vhost: support backend-t... Raphael Norwitz
