[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v6 16/27] monitor: separate QMP parser and dispatc
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [RFC v6 16/27] monitor: separate QMP parser and dispatcher |
Date: |
Mon, 25 Dec 2017 13:14:35 +0800 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Thu, Dec 21, 2017 at 07:40:13PM +0800, Fam Zheng wrote:
[...]
> > +/*
> > + * Pop one QMP request from monitor queues, return NULL if not found.
> > + * We are using round-robin fasion to pop the request, to avoid
>
> s/fasion/fashion/
Fixed.
[...]
> > static void monitor_qmp_read(void *opaque, const uint8_t *buf, int size)
> > {
> > Monitor *mon = opaque;
> > @@ -4150,6 +4292,15 @@ static void monitor_iothread_init(void)
> > {
> > mon_global.mon_iothread = iothread_create("mon_iothread",
> > &error_abort);
> > +
> > + /*
> > + * This MUST be on main loop thread since we have commands that
> > + * have assumption to be run on main loop thread (Yeah, we'd
> > + * better remove this assumption in the future).
>
> Assert and move this comment in monitor_qmp_bh_dispatcher?
I would still prefer to keep it here. IMHO what really matters is the
first parameter that passed in to aio_bh_new() below, rather than
monitor_qmp_bh_dispatcher itself? Thanks,
>
> > + */
> > + mon_global.qmp_dispatcher_bh = aio_bh_new(qemu_get_aio_context(),
> > + monitor_qmp_bh_dispatcher,
> > + NULL);
> > }
> >
>
> Fam
--
Peter Xu
- [Qemu-devel] [RFC v6 12/27] qmp: negotiate QMP capabilities, (continued)
- [Qemu-devel] [RFC v6 12/27] qmp: negotiate QMP capabilities, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 13/27] monitor: introduce monitor_qmp_respond(), Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 14/27] monitor: let suspend_cnt be thread safe, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 15/27] monitor: let suspend/resume work even with QMPs, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 16/27] monitor: separate QMP parser and dispatcher, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 17/27] qmp: add new event "command-dropped", Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/19
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Fam Zheng, 2017/12/21
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Fam Zheng, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Fam Zheng, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/25
[Qemu-devel] [RFC v6 19/27] qapi: introduce new cmd option "allow-oob", Peter Xu, 2017/12/19