Re: [Qemu-devel] [RFC v3 07/27] monitor: move the cur_mon hack deeper for QMP

2017-11-06 Thread Fam Zheng
On Mon, 11/06 17:46, Peter Xu wrote: > In monitor_qmp_read(), we have the hack to temporarily replace the > cur_mon pointer. Now we move this hack deeper inside the QMP dispatcher > routine since the Monitor pointer can be passed in to that using the new > JSON Parser opaque field now. > > This d

[Qemu-devel] [RFC v3 07/27] monitor: move the cur_mon hack deeper for QMP

2017-11-06 Thread Peter Xu
In monitor_qmp_read(), we have the hack to temporarily replace the cur_mon pointer. Now we move this hack deeper inside the QMP dispatcher routine since the Monitor pointer can be passed in to that using the new JSON Parser opaque field now. This does not make much sense as a single patch. Howev