Re: [PATCH 1/2] vhost-user: fix the reconnect error

2023-11-27 Thread Raphael Norwitz
> On Nov 23, 2023, at 12:54 AM, Li Feng wrote: > > If the error occurs in vhost_dev_init, the value of s->connected is set to > true > in advance, and there is no chance to enter this function execution again > in the future. > > Signed-off-by: Li Feng Reviewed-by: Raphael Norwitz > --- >

[PATCH 1/2] vhost-user: fix the reconnect error

2023-11-22 Thread Li Feng
If the error occurs in vhost_dev_init, the value of s->connected is set to true in advance, and there is no chance to enter this function execution again in the future. Signed-off-by: Li Feng --- hw/block/vhost-user-blk.c | 8 +++- hw/scsi/vhost-user-scsi.c | 3 ++- hw/virtio/vhost-user-