Re: [PATCH RFC 6/7] qmp_protocol: add QMP client implementation

2021-04-15 Thread Stefan Hajnoczi
On Wed, Apr 14, 2021 at 01:50:37PM -0400, John Snow wrote: > On 4/14/21 1:44 AM, Stefan Hajnoczi wrote: > > On Tue, Apr 13, 2021 at 11:55:52AM -0400, John Snow wrote: > > > +async def _execute(self, msg: Message) -> object: > > > +""" > > > +The same as `execute_msg()`, but with

Re: [PATCH RFC 6/7] qmp_protocol: add QMP client implementation

2021-04-14 Thread John Snow
On 4/14/21 1:44 AM, Stefan Hajnoczi wrote: On Tue, Apr 13, 2021 at 11:55:52AM -0400, John Snow wrote: +async def _execute(self, msg: Message) -> object: +""" +The same as `execute_msg()`, but without safety mechanisms. + +Does not assign an execution ID and does not c

Re: [PATCH RFC 6/7] qmp_protocol: add QMP client implementation

2021-04-14 Thread Stefan Hajnoczi
On Tue, Apr 13, 2021 at 11:55:52AM -0400, John Snow wrote: > +async def _execute(self, msg: Message) -> object: > +""" > +The same as `execute_msg()`, but without safety mechanisms. > + > +Does not assign an execution ID and does not check that the form > +of the

[PATCH RFC 6/7] qmp_protocol: add QMP client implementation

2021-04-13 Thread John Snow
Using everything added so far, add the QMP client itself. So far, this QMP object cannot actually pretend to be a server; it only implements the client logic (receiving events and sending commands.) Future work may involve implementing the ability to send events and receive RPC commands, so that w