Re: [PATCH] vhost-user-blk: reset the device if supported

2020-01-14 Thread Stefan Hajnoczi
On Fri, Jan 10, 2020 at 08:22:03PM +0800, Yang Zhong wrote: > As the vhost-user-scsi did in f04724, if the vhost-user-blk backend > supports the VHOST_USER_F_RESET_DEVICE protocol feature, then the > device can be reset when requested. > > If this feature is not supported, this reset will directly

[PATCH] vhost-user-blk: reset the device if supported

2020-01-10 Thread Yang Zhong
As the vhost-user-scsi did in f04724, if the vhost-user-blk backend supports the VHOST_USER_F_RESET_DEVICE protocol feature, then the device can be reset when requested. If this feature is not supported, this reset will directly return. Signed-off-by: Yang Zhong --- hw/block/vhost-user-blk.c |