• A
    QMP: Emit asynchronous events on all QMP monitors · f039a563
    Adam Litke 提交于
    When using a control/QMP monitor in tandem with a regular monitor, asynchronous
    messages can get lost depending on the order of the QEMU program arguments.
    QEMU events issued by monitor_protocol_event() always go to cur_mon.  If the
    user monitor was specified on the command line first (or it has ,default), the
    message will be directed to the user monitor (not the QMP monitor).
    Additionally, only one QMP session is currently able to receive async messages.
    
    To avoid this confusion, scan through the list of monitors and emit the message
    on each QMP monitor.
    Signed-off-by: NAdam Litke <agl@us.ibm.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    f039a563
monitor.c 114.2 KB