From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTY6-0007b8-3r for qemu-devel@nongnu.org; Wed, 29 Jul 2015 11:45:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKTY2-0006VU-9k for qemu-devel@nongnu.org; Wed, 29 Jul 2015 11:45:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTY1-0006Ua-Tw for qemu-devel@nongnu.org; Wed, 29 Jul 2015 11:45:38 -0400 Date: Wed, 29 Jul 2015 16:45:34 +0100 From: "Daniel P. Berrange" Message-ID: <20150729154534.GJ16847@redhat.com> References: <20150729150531.GI16847@redhat.com> <55B8ECFE.6000707@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] RFC: async commands with QMP Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: QEMU On Wed, Jul 29, 2015 at 05:32:59PM +0200, Marc-Andr=C3=A9 Lureau wrote: > Hi Eric >=20 > On Wed, Jul 29, 2015 at 5:10 PM, Eric Blake wrote: > > In fact, see commit 65207c59, where we ripped it out with prejudice. >=20 > Whoo, I should have looked at git history :) >=20 > That implementation looks quite bad indeed (suspending monitor?) And > it wasn't properly documented it seems. No wonders it wasn't used. > Btw, apparently it's the reason why "id" is there in the first place. > I don't think there is a good reason to keep having it in sync > commands. Yep, the 'id' is pretty pointless now, but we keep accepting it and sending it in responses in order to not break compatibility with any existing apps which might be sending it / checking for it in responses. > >> One of the benefits of this is that it means > >> that libvirt can determine current status of ongoing background jobs > >> when it restarts and reconnects to a previously launched QEMU, where > >> as an async command approach is tied to the specific monitor connect= ion > >> that is open. > > > > And that is a real concern with any new proposal for async commands. >=20 > I don't think it's incompatible with having async commands, since in > fact they are already async commands with dummy quick return. Some > async should be cancelled when the client is gone (this depends on the > async command, whether it is tight to a client or not). However, no > old async return should be given to a new client. Agreed, they're not mutually exclusive. I guess it is more a question of whether there is a compelling enough reason to support both usage approaches Regards, Daniel --=20 |: http://berrange.com -o- http://www.flickr.com/photos/dberrange= / :| |: http://libvirt.org -o- http://virt-manager.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vn= c :|