From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZovBQ-0003QA-Jl for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:20:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZovBL-0006pd-8N for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:20:08 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:55263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZovBK-0006pV-WA for qemu-devel@nongnu.org; Wed, 21 Oct 2015 11:20:03 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Oct 2015 09:20:01 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 5D6843E40048 for ; Wed, 21 Oct 2015 09:19:57 -0600 (MDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t9LFIbFc7012682 for ; Wed, 21 Oct 2015 08:18:37 -0700 Received: from d03av03.boulder.ibm.com (localhost [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t9LFJv5V028538 for ; Wed, 21 Oct 2015 09:19:57 -0600 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth References: In-Reply-To: Message-ID: <20151021151040.10420.91322@loki> Date: Wed, 21 Oct 2015 10:10:40 -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 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. > = > -- = > Vasiliy Tolstov, > e-mail: v.tolstov@selfip.ru >=20