On 20/10/2016 10:37, Daniel P. Berrange wrote: > You have a problem of context - if you have multiple monitors, how do > you know which to send the error back to if you're not in the event > loop thread, and thus cur_mon is NULL. With Marc-Andre's series which > allows proper async command processing it gets even harder, because > there's potentially many outstanding commands associated with a monitor > and you need to decide which the error should be given to.
Why should it even consult the current monitor? Shouldn't errors go to all HMP monitors when QEMU falls back to error_report? Paolo