All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yuri Pudgorodskiy <yur@virtuozzo.com>
To: Michael Roth <mdroth@linux.vnet.ibm.com>,
	"Denis V. Lunev" <den@openvz.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/5] qga: guest exec functionality
Date: Mon, 5 Oct 2015 17:18:36 +0300	[thread overview]
Message-ID: <561286BC.2010206@virtuozzo.com> (raw)
In-Reply-To: <20151001225926.32707.11419@loki>

On 10/2/2015 1:59 AM, Michael Roth wrote:
>> +#
>> +# Since: 2.5
>> +##
>> +{ 'command': 'guest-exec',
>> +  'data':    { 'path': 'str', '*arg': ['str'], '*env': ['str'],
>> +               '*inp-data': 'str', '*capture-output': 'bool' },
>> +  'returns': 'GuestExec' }
> Would it make sense to just add handle (pid) to GuestExecStatus, and
> have this return GuestExecStatus just the same as guest-exec-status
> does? I'm not sure either way personally, just thought I'd mention it.
>

I do not think it's a good idea. GuestExecStatus contains mostly the 
data about
the finished exec. Having GuestExec returns same struct may make wrong
assumption that it can be synchronous - wait for exec to complete and 
return all
data in a single call.

Implementing synchronous GuestExec is not and easy job - either we occupy
host-guest channel for all time until task finished, which is bad or we 
need to
implement multiplexed messages for concurrent qga commands.

  reply	other threads:[~2015-10-05 14:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  7:37 [Qemu-devel] [PATCH 0/5] simplified QEMU guest exec Denis V. Lunev
2015-10-01  7:37 ` [Qemu-devel] [PATCH 1/5] qga: drop guest_file_init helper and replace it with static initializers Denis V. Lunev
2015-10-01 21:46   ` Michael Roth
2015-10-01  7:38 ` [Qemu-devel] [PATCH 2/5] qga: handle G_IO_STATUS_AGAIN in ga_channel_write_all() Denis V. Lunev
2015-10-01 21:54   ` Michael Roth
2015-10-01  7:38 ` [Qemu-devel] [PATCH 3/5] qga: guest exec functionality Denis V. Lunev
2015-10-01 22:59   ` Michael Roth
2015-10-05 14:18     ` Yuri Pudgorodskiy [this message]
2015-10-01  7:38 ` [Qemu-devel] [PATCH 4/5] qga: handle possible SIGPIPE in guest-file-write Denis V. Lunev
2015-10-01 23:03   ` Michael Roth
2015-10-01  7:38 ` [Qemu-devel] [PATCH 5/5] qga: guest-exec simple stdin/stdout/stderr redirection Denis V. Lunev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=561286BC.2010206@virtuozzo.com \
    --to=yur@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.