On 21/08/2018 16:04, Marc-André Lureau wrote: >> If you don't like the way I proposed, another thing I am >> thinking is that whether we can assign the gcontext for the chardev >> backend before initialization of it (or by parsing the backend & >> frontend relationships before init of backends), then we assure that >> we never change the gcontext of any chardev backends. Though that > Yes, I think that's a cleaner solution. I suggested to use an iothread > argument in the cover letter.
That would be nice, but isn't it already too late for the monitor chardev? In any case, I don't see a reason to dislike this patch, especially since it comes with a testcase. Paolo