diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-17 14:46:49 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-25 10:18:33 +0200 |
commit | 4cb96b974265f97a9902b4458e50d01082572a16 (patch) | |
tree | a54e0a13142b24532155d3aee540260f5bc33d14 /include/monitor | |
parent | c5d0c55f1ac402327235e4046f3921d16bc7b529 (diff) | |
download | qemu-4cb96b974265f97a9902b4458e50d01082572a16.zip qemu-4cb96b974265f97a9902b4458e50d01082572a16.tar.gz qemu-4cb96b974265f97a9902b4458e50d01082572a16.tar.bz2 |
monitor: add more *_locked() functions
Allow flushing and printing to the monitor while mon->mon_lock is
held. This will help cleaning up the locking of mon->mux_out and
mon->suspend_cnt.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/monitor')
-rw-r--r-- | include/monitor/monitor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index 033390f..965f5d5 100644 --- a/include/monitor/monitor.h +++ b/include/monitor/monitor.h @@ -40,6 +40,9 @@ void monitor_flush(Monitor *mon); int monitor_set_cpu(Monitor *mon, int cpu_index); int monitor_get_cpu_index(Monitor *mon); +int monitor_puts_locked(Monitor *mon, const char *str); +void monitor_flush_locked(Monitor *mon); + void *gpa2hva(MemoryRegion **p_mr, hwaddr addr, uint64_t size, Error **errp); void monitor_read_command(MonitorHMP *mon, int show_prompt); |