Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-05-30 Thread Damien Hedde
On 5/25/22 18:06, Daniel P. Berrangé wrote: On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: +def raw_load(file: TextIO) -> List[QMPMessage]: +"""parse a raw qmp command file. + +JSON formatted commands can expand on several lines but must +be separated by an end-of

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-05-25 Thread Daniel P . Berrangé
On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: > +def raw_load(file: TextIO) -> List[QMPMessage]: > +"""parse a raw qmp command file. > + > +JSON formatted commands can expand on several lines but must > +be separated by an end-of-line (two commands can not share the >

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-19 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Tue, Apr 05, 2022 at 02:45:14PM +0200, Damien Hedde wrote: >> >> >> On 4/5/22 07:41, Markus Armbruster wrote: >> > Daniel P. Berrangé writes: >> > >> > > On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: >> > > > It takes an input file containing ra

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-19 Thread Daniel P . Berrangé
On Tue, Apr 05, 2022 at 02:45:14PM +0200, Damien Hedde wrote: > > > On 4/5/22 07:41, Markus Armbruster wrote: > > Daniel P. Berrangé writes: > > > > > On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: > > > > It takes an input file containing raw qmp commands (concatenated json > >

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-05 Thread Markus Armbruster
John Snow writes: > On Tue, Apr 5, 2022, 5:03 AM Damien Hedde > wrote: [...] >> If it stays in QEMU tree, what licensing should I use ? LGPL does not >> hurt, no ? >> > > Whichever you please. GPLv2+ would be convenient and harmonizes well with > other tools. LGPL is only something I started d

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-05 Thread John Snow
On Tue, Apr 5, 2022, 5:03 AM Damien Hedde wrote: > > > On 4/4/22 22:34, John Snow wrote: > > On Wed, Mar 16, 2022 at 5:55 AM Damien Hedde > wrote: > >> > >> It takes an input file containing raw qmp commands (concatenated json > >> dicts) and send all commands one by one to a qmp server. When on

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-05 Thread Damien Hedde
On 4/5/22 07:41, Markus Armbruster wrote: Daniel P. Berrangé writes: On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: It takes an input file containing raw qmp commands (concatenated json dicts) and send all commands one by one to a qmp server. When one command fails, it exits

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-05 Thread Markus Armbruster
Damien Hedde writes: > On 4/4/22 22:34, John Snow wrote: >> On Wed, Mar 16, 2022 at 5:55 AM Damien Hedde >> wrote: [...] >> I recommend putting this in qemu/util/qmp_send.py instead. >> I'm in the process of pulling out the AQMP lib and hosting it >> separately. Scripts like this I think shou

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-05 Thread Damien Hedde
On 4/4/22 22:34, John Snow wrote: On Wed, Mar 16, 2022 at 5:55 AM Damien Hedde wrote: It takes an input file containing raw qmp commands (concatenated json dicts) and send all commands one by one to a qmp server. When one command fails, it exits. As a convenience, it can also wrap the qemu

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-04 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: >> It takes an input file containing raw qmp commands (concatenated json >> dicts) and send all commands one by one to a qmp server. When one >> command fails, it exits. >> >> As a convenience, it can also

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-04-04 Thread John Snow
On Wed, Mar 16, 2022 at 5:55 AM Damien Hedde wrote: > > It takes an input file containing raw qmp commands (concatenated json > dicts) and send all commands one by one to a qmp server. When one > command fails, it exits. > > As a convenience, it can also wrap the qemu process to avoid having > to

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-03-16 Thread Damien Hedde
On 3/16/22 11:24, Daniel P. Berrangé wrote: On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: It takes an input file containing raw qmp commands (concatenated json dicts) and send all commands one by one to a qmp server. When one command fails, it exits. As a convenience, it can

Re: [RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-03-16 Thread Daniel P . Berrangé
On Wed, Mar 16, 2022 at 10:54:55AM +0100, Damien Hedde wrote: > It takes an input file containing raw qmp commands (concatenated json > dicts) and send all commands one by one to a qmp server. When one > command fails, it exits. > > As a convenience, it can also wrap the qemu process to avoid havi

[RFC PATCH] python: add qmp-send program to send raw qmp commands to qemu

2022-03-16 Thread Damien Hedde
It takes an input file containing raw qmp commands (concatenated json dicts) and send all commands one by one to a qmp server. When one command fails, it exits. As a convenience, it can also wrap the qemu process to avoid having to start qemu in background. When wrapping qemu, the program returns