Re: [Qemu-devel] [PATCH 06/56] test-qga: Clean up how we test QGA synchronization

2018-08-10 Thread Markus Armbruster
Eric Blake writes: > On 08/08/2018 07:02 AM, Markus Armbruster wrote: >> To permit recovering from arbitrary JSON parse errors, the JSON parser >> resets itself on lexical errors. We recommend sending a 0xff byte for >> that purpose, and test-qga covers this usage since commit 5229564b832. >> Th

Re: [Qemu-devel] [PATCH 06/56] test-qga: Clean up how we test QGA synchronization

2018-08-09 Thread Eric Blake
On 08/08/2018 07:02 AM, Markus Armbruster wrote: To permit recovering from arbitrary JSON parse errors, the JSON parser resets itself on lexical errors. We recommend sending a 0xff byte for that purpose, and test-qga covers this usage since commit 5229564b832. That commit had to add an ugly hack

[Qemu-devel] [PATCH 06/56] test-qga: Clean up how we test QGA synchronization

2018-08-08 Thread Markus Armbruster
To permit recovering from arbitrary JSON parse errors, the JSON parser resets itself on lexical errors. We recommend sending a 0xff byte for that purpose, and test-qga covers this usage since commit 5229564b832. That commit had to add an ugly hack to qmp_fd_vsend() to make capable of sending this