Re: [PATCH v4 1/7] vhost: recheck dev state in the vhost_migration_log routine

2020-09-10 Thread Dima Stepanov
On Tue, Sep 08, 2020 at 03:25:20PM +0100, Stefan Hajnoczi wrote: > On Fri, Sep 04, 2020 at 12:31:13PM +0300, Dima Stepanov wrote: > > vhost-user devices can get a disconnect in the middle of the VHOST-USER > > handshake on the migration start. If disconnect event happened right > > before sending n

Re: [PATCH v4 1/7] vhost: recheck dev state in the vhost_migration_log routine

2020-09-09 Thread Stefan Hajnoczi
On Fri, Sep 04, 2020 at 12:31:13PM +0300, Dima Stepanov wrote: > vhost-user devices can get a disconnect in the middle of the VHOST-USER > handshake on the migration start. If disconnect event happened right > before sending next VHOST-USER command, then the vhost_dev_set_log() > call in the vhost_

[PATCH v4 1/7] vhost: recheck dev state in the vhost_migration_log routine

2020-09-04 Thread Dima Stepanov
vhost-user devices can get a disconnect in the middle of the VHOST-USER handshake on the migration start. If disconnect event happened right before sending next VHOST-USER command, then the vhost_dev_set_log() call in the vhost_migration_log() function will return error. This error will lead to the