Re: [Qemu-devel] [RFC v3 08/27] monitor: unify global init

2017-11-06 Thread Fam Zheng
On Mon, 11/06 17:46, Peter Xu wrote: > There are many places for monitor init its globals, at least: > > - monitor_init_qmp_commands() at the very beginning > - single function to init monitor_lock > - in the first entry of monitor_init() using "is_first_init" > > Unify them a bit. > > Signed-of

[Qemu-devel] [RFC v3 08/27] monitor: unify global init

2017-11-06 Thread Peter Xu
There are many places for monitor init its globals, at least: - monitor_init_qmp_commands() at the very beginning - single function to init monitor_lock - in the first entry of monitor_init() using "is_first_init" Unify them a bit. Signed-off-by: Peter Xu --- include/monitor/monitor.h | 2 +-