From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTLp-00028I-5e for qemu-devel@nongnu.org; Wed, 29 Jul 2015 11:33:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKTLo-0006ej-42 for qemu-devel@nongnu.org; Wed, 29 Jul 2015 11:33:01 -0400 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:34349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTLn-0006eZ-Vl for qemu-devel@nongnu.org; Wed, 29 Jul 2015 11:33:00 -0400 Received: by oigi136 with SMTP id i136so6962163oig.1 for ; Wed, 29 Jul 2015 08:32:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55B8ECFE.6000707@redhat.com> References: <20150729150531.GI16847@redhat.com> <55B8ECFE.6000707@redhat.com> Date: Wed, 29 Jul 2015 17:32:59 +0200 Message-ID: From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] RFC: async commands with QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: QEMU Hi Eric On Wed, Jul 29, 2015 at 5:10 PM, Eric Blake wrote: > In fact, see commit 65207c59, where we ripped it out with prejudice. Whoo, I should have looked at git history :) 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. > >> 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 connection >> that is open. > > And that is a real concern with any new proposal for async commands. 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. --=20 Marc-Andr=C3=A9 Lureau