From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axHws-0005Ka-Q8 for qemu-devel@nongnu.org; Mon, 02 May 2016 13:48:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axHwg-0001xN-Tt for qemu-devel@nongnu.org; Mon, 02 May 2016 13:47:53 -0400 Received: from mga11.intel.com ([192.55.52.93]:24620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axHwg-0001vL-O6 for qemu-devel@nongnu.org; Mon, 02 May 2016 13:47:46 -0400 Date: Mon, 2 May 2016 10:50:58 -0700 From: Yuanhan Liu Message-ID: <20160502175058.GN5641@yliu-dev.sh.intel.com> References: <1459509388-6185-1-git-send-email-marcandre.lureau@redhat.com> <1459509388-6185-12-git-send-email-marcandre.lureau@redhat.com> <20160428052304.GF25677@yliu-dev.sh.intel.com> <20160429174835.GH5641@yliu-dev.sh.intel.com> <20160501134233-mutt-send-email-mst@redhat.com> <20160501210442.GK5641@yliu-dev.sh.intel.com> <20160502080610-mutt-send-email-mst@redhat.com> <20160502143051-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160502143051-mutt-send-email-mst@redhat.com> Subject: Re: [Qemu-devel] [PATCH 11/18] vhost-user: add shutdown support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , QEMU , Ilya Maximets , jonshin@cisco.com, Tetsuya Mukawa , "Xie, Huawei" 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 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