Re: [Qemu-devel] Let event loop use non-default GMainContext

2018-04-21 Thread Stefan Hajnoczi
On Sat, Apr 21, 2018 at 11:29 AM, Eva Chen wrote: > Thanks for your reply. > > Actually, I don't know there is existing work on emulating heterogeneous > system under QEMU. The only work I know is that QEMU has implemented > multicore in one QEMU process. But what I want to do is to simulate two >

Re: [Qemu-devel] Let event loop use non-default GMainContext

2018-04-20 Thread Stefan Hajnoczi
On Mon, Apr 16, 2018 at 04:52:34PM +0800, Eva Chen wrote: > The reason for replacing default GMainContext is that I simultaneously run > two qemu, called A and B, in threads. However, these two QEMU using the > same default GMainContext causes A QEMU to handle the event from B QEMU, > and run B's h

[Qemu-devel] Let event loop use non-default GMainContext

2018-04-16 Thread Eva Chen
Hello, It seems that AIO use global default GMainContext by *g_main_context_default()*. I want to replace all default GMainContext into another GMainContext by *g_main_context_new()*, but I have no idea when and where to add *g_main_context_new()*. It should be only created new GMainContext once,