On Mon, May 02, 2016 at 03:04:30PM +0300, Michael S. Tsirkin wrote: > On Mon, May 02, 2016 at 01:29:18PM +0200, Marc-André Lureau wrote: > > Hi > > > > On Mon, May 2, 2016 at 12:45 PM, Michael S. Tsirkin <m...@redhat.com> wrote: > > > 1. Graceful disconnect > > > - One should be able to do vmstop, disconnect, connect then vm start > > > This looks like a nice intermediate step. > > > - Why would we always assume it's always remote initiating the disconnect? > > > Monitor commands for disconnecting seem called for. > > > > Those two solutions involve VM management. This looks more complex to > > communicate/synchronize vhost-user backend & vm management & qemu. The > > use case I cover is request from the backend to shutdown, > > Right, but flushing buffers + closing the socket looks like > a cleaner interface than a ton of messages going back and forth.
I'd agree with Michael on that. It needs more cares when dealing with two stream buffers: you can't quit backend soon after the shutdown request, instead, you have to wait for the ACK from QEMU. Making request from QEMU avoids that. --yliu