diff options
author | Kevin Wolf <kwolf@redhat.com> | 2020-10-05 17:58:43 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-10-09 07:08:19 +0200 |
commit | 87e6f4a4d6885006931b371771e2933c40700427 (patch) | |
tree | 72eb29a53ab5f36ecd323fce6cf1f1622ad3baf3 /softmmu | |
parent | dcba65f824817596e817a43f83ef83bac9099e76 (diff) |
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>
Diffstat (limited to 'softmmu')
-rw-r--r-- | softmmu/cpus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/softmmu/cpus.c b/softmmu/cpus.c index 9e33416b4d..e9d4a44fcc 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -793,6 +793,6 @@ exit: void qmp_inject_nmi(Error **errp) { - nmi_monitor_handle(monitor_get_cpu_index(), errp); + nmi_monitor_handle(monitor_get_cpu_index(cur_mon), errp); } |