Re: [PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-10-01 Thread Daniel Xu
Hi Konstantin, On Wed, Sep 27, 2023, at 2:43 AM, Konstantin Kostiuk wrote: > Hi Daniel, > > As for me, the idea of using QGA as an interactive shell is not good. > I suggest using virtio-serial as a transport for stdin/stdout of your > process. > Examples: > > https://stackoverflow.com/ques

Re: [PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-09-27 Thread Konstantin Kostiuk
Hi Daniel, As for me, the idea of using QGA as an interactive shell is not good. I suggest using virtio-serial as a transport for stdin/stdout of your process. Examples: https://stackoverflow.com/questions/68277557/qemu-virtio-virtconsole-devices-explained https://fedoraproject.org/wiki/Featu

Re: [PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-09-18 Thread Daniel Xu
Hi Daniel, On Mon, Sep 18, 2023 at 04:14:47PM +0100, Daniel P. Berrangé wrote: > On Mon, Sep 18, 2023 at 04:54:22AM -0600, Daniel Xu wrote: > > Currently, commands run through guest-exec are "silent" until they > > finish running. This is fine for short lived commands. But for commands > > that ta

Re: [PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-09-18 Thread Daniel Xu
On Mon, Sep 18, 2023 at 05:05:03PM +0200, Markus Armbruster wrote: > Daniel Xu writes: > > > Currently, commands run through guest-exec are "silent" until they > > finish running. This is fine for short lived commands. But for commands > > that take a while, this is a bad user experience. > > > >

Re: [PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-09-18 Thread Daniel P . Berrangé
On Mon, Sep 18, 2023 at 04:54:22AM -0600, Daniel Xu wrote: > Currently, commands run through guest-exec are "silent" until they > finish running. This is fine for short lived commands. But for commands > that take a while, this is a bad user experience. > > Usually long running programs know that

Re: [PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-09-18 Thread Markus Armbruster
Daniel Xu writes: > Currently, commands run through guest-exec are "silent" until they > finish running. This is fine for short lived commands. But for commands > that take a while, this is a bad user experience. > > Usually long running programs know that they will run for a while. To > improve

[PATCH 2/3] qga: Add optional stream-output argument to guest-exec

2023-09-18 Thread Daniel Xu
Currently, commands run through guest-exec are "silent" until they finish running. This is fine for short lived commands. But for commands that take a while, this is a bad user experience. Usually long running programs know that they will run for a while. To improve user experience, they will typi