mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
monitor: Add Monitor parameter to monitor_set_cpu()
Most callers actually don't have to rely on cur_mon, but already know for which monitor they call monitor_set_cpu(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20201005155855.256490-2-kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
497d415d76
commit
dcba65f824
3 changed files with 7 additions and 7 deletions
|
@ -998,7 +998,7 @@ void hmp_cpu(Monitor *mon, const QDict *qdict)
|
|||
/* XXX: drop the monitor_set_cpu() usage when all HMP commands that
|
||||
use it are converted to the QAPI */
|
||||
cpu_index = qdict_get_int(qdict, "index");
|
||||
if (monitor_set_cpu(cpu_index) < 0) {
|
||||
if (monitor_set_cpu(mon, cpu_index) < 0) {
|
||||
monitor_printf(mon, "invalid CPU index\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue