Re: [Qemu-devel] [PATCH v7 1/4] monitor: rename out_lock to mon_lock

2018-05-24 Thread Markus Armbruster
Peter Xu writes: > On Thu, May 24, 2018 at 10:29:20AM +0200, Markus Armbruster wrote: >> Peter Xu writes: >> >> > The out_lock is protecting a few Monitor fields. In the future the >> > monitor code will start to run in multiple threads. We are going to >> > turn it into a bigger lock to prot

Re: [Qemu-devel] [PATCH v7 1/4] monitor: rename out_lock to mon_lock

2018-05-24 Thread Peter Xu
On Thu, May 24, 2018 at 10:29:20AM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > The out_lock is protecting a few Monitor fields. In the future the > > monitor code will start to run in multiple threads. We are going to > > turn it into a bigger lock to protect not only the out buffe

Re: [Qemu-devel] [PATCH v7 1/4] monitor: rename out_lock to mon_lock

2018-05-24 Thread Markus Armbruster
Peter Xu writes: > The out_lock is protecting a few Monitor fields. In the future the > monitor code will start to run in multiple threads. We are going to > turn it into a bigger lock to protect not only the out buffer but also > all the rest. Hmm, not sure about "all the rest": PATCH 3 marks

[Qemu-devel] [PATCH v7 1/4] monitor: rename out_lock to mon_lock

2018-05-23 Thread Peter Xu
The out_lock is protecting a few Monitor fields. In the future the monitor code will start to run in multiple threads. We are going to turn it into a bigger lock to protect not only the out buffer but also all the rest. Since at it, rearrange the Monitor struct a bit. Reviewed-by: Stefan Hajnoc