[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] qemu-guest-agent question
From: |
Michael Roth |
Subject: |
Re: [Qemu-devel] qemu-guest-agent question |
Date: |
Wed, 21 Oct 2015 10:28:53 -0500 |
User-agent: |
alot/0.3.6 |
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: address@hidden
> >