[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [RFC][PATCH v1 07/12] qmp proxy: core code for prox

From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [RFC][PATCH v1 07/12] qmp proxy: core code for proxying qmp requests to guest
Date: Mon, 28 Mar 2011 14:05:29 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 03/25/2011 04:56 PM, Michael Roth wrote:
I don't quite follow what this is doing.

That's for the session negotiation so we can reset state when the guest agent restarts. The sequence is:

guest -> host
{ "_xport_event": "guest_init", "_xport_arg_sid": <random session id> }

host -> guest
{ "_xport_event": "host_ack", "_xport_arg_sid": <received session id> }

Guest will ignore anything it gets until it sees an ack with the proper session id, host will cancel outstanding requests when it receives a guest init. If there's already an event waiting to be sent we clobber it since for the above exchange only the most recent event we sent matters.

We send them as json objects, but they get handled at transport level and terminate there.

Doesn't an invalid UTF-8 sequence provide the same functionality?


Anthony Liguori

reply via email to

[Prev in Thread] Current Thread [Next in Thread]