monitor: Add Monitor parameter to monitor_get_cpu_index()
commit87e6f4a4d6885006931b371771e2933c40700427
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Oct 2020 15:58:43 +0000 (5 17:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Oct 2020 05:08:19 +0000 (9 07:08 +0200)
tree72eb29a53ab5f36ecd323fce6cf1f1622ad3baf3
parentdcba65f824817596e817a43f83ef83bac9099e76
monitor: Add Monitor parameter to monitor_get_cpu_index()

Most callers actually don't have to rely on cur_mon, but already know
for which monitor they call monitor_get_cpu_index().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201005155855.256490-3-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>
hw/core/machine-hmp-cmds.c
include/monitor/monitor.h
monitor/hmp-cmds.c
monitor/misc.c
softmmu/cpus.c