qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 03/12] hmp: Set cur_mon only in handle_hmp_command()


From: Eric Blake
Subject: Re: [PATCH v6 03/12] hmp: Set cur_mon only in handle_hmp_command()
Date: Thu, 28 May 2020 13:37:26 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 5/28/20 10:37 AM, Kevin Wolf wrote:
cur_mon is updated relatively early in the command handling code even
though only the command handler actually needs it. Move it to
handle_hmp_command().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
  monitor/hmp.c  | 23 ++++++++++++-----------
  monitor/misc.c |  7 -------
  2 files changed, 12 insertions(+), 18 deletions(-)


+++ b/monitor/misc.c

@@ -258,7 +252,6 @@ static void monitor_init_qmp_commands(void)
  /* Set the current CPU defined by the user. Callers must hold BQL. */
  int monitor_set_cpu(Monitor *mon, int cpu_index)
  {
-    Monitor *cur_mon = monitor_cur();
      CPUState *cpu;
cpu = qemu_get_cpu(cpu_index);

Bogus churn, will disappear after you fix 2/12.  For the rest of the patch:
Reviewed-by: Eric Blake <eblake@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]