On Wed, Jan 24, 2018 at 01:39:48PM +0800, Peter Xu wrote: > Originally QMP goes through these steps: > > JSON Parser --> QMP Dispatcher --> Respond > /|\ (2) (3) | > (1) | \|/ (4) > +--------- main thread --------+ > > This patch does this: > > JSON Parser QMP Dispatcher --> Respond > /|\ | /|\ (4) | > | | (2) | (3) | (5) > (1) | +-----> | \|/ > +--------- main thread <-------+ > > So the parsing job and the dispatching job is isolated now. It gives us > a chance in following up patches to totally move the parser outside. > > The isolation is done using one QEMUBH. Only one dispatcher QEMUBH is > used for all the monitors. > > Signed-off-by: Peter Xu <pet...@redhat.com> > --- > monitor.c | 201 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++------- > 1 file changed, 178 insertions(+), 23 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature