mirror of
https://github.com/qemu/qemu.git
synced 2024-12-27 06:03:29 +08:00
62aa1d887f
@cur_mon is null unless the main thread is running monitor code, either
HMP code within monitor_read(), or QMP code within
monitor_qmp_dispatch().
Use of @cur_mon outside the main thread is therefore unsafe.
Most of its uses are in monitor command handlers. These run in the main
thread.
However, there are also uses hiding elsewhere, such as in
error_vprintf(), and thus error_report(), making these functions unsafe
outside the main thread. No such unsafe uses are known at this time.
Regardless, this is an unnecessary trap. It's an ancient trap, though.
More recently, commit
|
||
---|---|---|
.. | ||
hmp-target.h | ||
monitor.h | ||
qdev.h |