From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZovKD-00028Q-Tw for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZovK9-0001Ki-LA for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:29:13 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:44835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZovK9-0001KE-DY for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:29:09 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Oct 2015 09:29:07 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 748AD1FF004A for ; Wed, 21 Oct 2015 09:17:13 -0600 (MDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t9LFRe8C3277218 for ; Wed, 21 Oct 2015 08:27:40 -0700 Received: from d03av02.boulder.ibm.com (localhost [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t9LFT1Bj011825 for ; Wed, 21 Oct 2015 09:29:01 -0600 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth References: <20151021151040.10420.91322@loki> In-Reply-To: <20151021151040.10420.91322@loki> Message-ID: <20151021152853.18764.34766@loki> Date: Wed, 21 Oct 2015 10:28:53 -0500 Subject: Re: [Qemu-devel] qemu-guest-agent question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vasiliy Tolstov , qemu-devel Quoting Michael Roth (2015-10-21 10:10:40) > Quoting Vasiliy Tolstov (2015-10-19 08:41:35) > > I'm try to understand sources of qga and have a question- does agent > > execute commands synchronous or if i'm send firstly long running > > command and after that send short lived command, short lived command > > response can be sended before first command result? > > Thanks! > = > Yes, commands are executed asynchronously. guest-exec kicks them off and > returns a handle. guest-exec-status can be called later with that handle > to check on the status of the command. If the command has completed, > guest-exec-status will report the return status, along with stdout/stderr > if capture mode was enabled. Multiple commands can be issued/running at > any one time. > = > The documentation in qemu.git/qga/qapi-schema.json has more exact details. I assumed you were referring to 'commands' via the recent guest-exec command that was added, but in case that's not what you were asking about: The guest agent commands themselves are synchronous, and qga will process and respond to requests as it recieves them, one at a time, from start to finish. > = > > = > > -- = > > Vasiliy Tolstov, > > e-mail: v.tolstov@selfip.ru > >=20