[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 16/20] monitor: Unbox Monitor member mc and rena
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 16/20] monitor: Unbox Monitor member mc and rename to qmp |
Date: |
Fri, 22 May 2015 16:52:53 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 05/22/2015 05:36 AM, Markus Armbruster wrote:
> While there, rename its type as well, from MonitorControl to
> MonitorQMP.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> monitor.c | 35 ++++++++++++++++-------------------
> 1 file changed, 16 insertions(+), 19 deletions(-)
>
> @@ -5255,14 +5255,11 @@ void monitor_init(CharDriverState *chr, int flags)
> monitor_read_command(mon, 0);
> }
>
> - if (monitor_ctrl_mode(mon)) {
> - mon->mc = g_malloc0(sizeof(MonitorControl));
> - /* Control mode requires special handlers */
> + if (flags & MONITOR_USE_CONTROL) {
You also inlined this use of monitor_ctrl_mode; worth mentioning in the
commit message? Or should it have been swapped to monitor_is_qmp() in
patch 19?
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 09/20] monitor: Propagate errors through qmp_check_client_args(), (continued)
- [Qemu-devel] [PATCH 18/20] monitor: Turn int command_mode into bool in_command_mode, Markus Armbruster, 2015/05/22
- [Qemu-devel] [PATCH 19/20] monitor: Rename monitor_ctrl_mode() to monitor_is_qmp(), Markus Armbruster, 2015/05/22
- [Qemu-devel] [PATCH 13/20] monitor: Limit QError use to command handlers, Markus Armbruster, 2015/05/22
- [Qemu-devel] [PATCH 16/20] monitor: Unbox Monitor member mc and rename to qmp, Markus Armbruster, 2015/05/22
- Re: [Qemu-devel] [PATCH 16/20] monitor: Unbox Monitor member mc and rename to qmp,
Eric Blake <=
- [Qemu-devel] [PATCH 11/20] monitor: Wean monitor_protocol_emitter() off mon->error, Markus Armbruster, 2015/05/22
- [Qemu-devel] [PATCH 15/20] monitor: Rename monitor_control_read(), monitor_control_event(), Markus Armbruster, 2015/05/22
- [Qemu-devel] [PATCH 20/20] monitor: Change return type of monitor_cur_is_qmp() to bool, Markus Armbruster, 2015/05/22